MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / add

Method add

Mod Utils/src/eu/the5zig/mod/util/Rectangle.java:173–182  ·  view source on GitHub ↗
(int newx, int newy)

Source from the content-addressed store, hash-verified

171 }
172
173 public void add(int newx, int newy) {
174 int x1 = Math.min(this.x, newx);
175 int x2 = Math.max(this.x + this.width, newx);
176 int y1 = Math.min(this.y, newy);
177 int y2 = Math.max(this.y + this.height, newy);
178 this.x = x1;
179 this.y = y1;
180 this.width = x2 - x1;
181 this.height = y2 - y1;
182 }
183
184 public void grow(int h, int v) {
185 this.x -= h;

Callers 15

addTextFieldMethod · 0.45
addButtonMethod · 0.45
addGuiListMethod · 0.45
addCheckBoxMethod · 0.45
addRadioCheckBoxMethod · 0.45
updateMethod · 0.45
runMethod · 0.45
aMethod · 0.45
patchMainMenuMethod · 0.45
setChatLineMethod · 0.45
addToSentMessagesMethod · 0.45
getServerPlayersMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected