MCPcopy Create free account
hub / github.com/Garten/sourcecraft / setTo

Method setTo

src/periphery/Place.java:76–86  ·  view source on GitHub ↗
(Place other)

Source from the content-addressed store, hash-verified

74 }
75
76 public Place setTo(Place other) {
77 if (other == null) {
78 return this;
79 }
80 if (!other.displayName.isEmpty()) {
81 this.displayName = other.displayName;
82 }
83 this.start.setTo(other.start);
84 this.end.setTo(other.end);
85 return this;
86 }
87
88 public boolean correctCoordinates() {
89 boolean changed = Position.bringInOrder(this.start, this.end);

Callers 3

saveNewPlaceMethod · 0.95
setStartMethod · 0.45
setEndMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected