Skip to content

Commit 2d625c6

Browse files
committed
feat: add setters to WrapperPlayServerWorldBorder
1 parent 4602ea8 commit 2d625c6

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

api/src/main/java/com/github/retrooper/packetevents/wrapper/play/server/WrapperPlayServerWorldBorder.java

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,46 @@ public int getWarningBlocks() {
204204
return this.warningBlocks;
205205
}
206206

207+
public void setAction(WorldBorderAction action) {
208+
this.action = action;
209+
}
210+
211+
public void setRadius(double radius) {
212+
this.radius = radius;
213+
}
214+
215+
public void setOldRadius(double oldRadius) {
216+
this.oldRadius = oldRadius;
217+
}
218+
219+
public void setNewRadius(double newRadius) {
220+
this.newRadius = newRadius;
221+
}
222+
223+
public void setSpeed(long speed) {
224+
this.speed = speed;
225+
}
226+
227+
public void setCenterX(double centerX) {
228+
this.centerX = centerX;
229+
}
230+
231+
public void setCenterZ(double centerZ) {
232+
this.centerZ = centerZ;
233+
}
234+
235+
public void setPortalTeleportBoundary(int portalTeleportBoundary) {
236+
this.portalTeleportBoundary = portalTeleportBoundary;
237+
}
238+
239+
public void setWarningTime(int warningTime) {
240+
this.warningTime = warningTime;
241+
}
242+
243+
public void setWarningBlocks(int warningBlocks) {
244+
this.warningBlocks = warningBlocks;
245+
}
246+
207247
public enum WorldBorderAction {
208248
SET_SIZE(1),
209249
LERP_SIZE(2),

0 commit comments

Comments
 (0)