You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @throws IllegalArgumentException if the absolute value of x or z is higher than {@link #getMaxCenterCoordinate()}
75
99
*/
76
-
publicvoidsetCenter(doublex, doublez);
100
+
voidsetCenter(doublex, doublez);
77
101
78
102
/**
79
103
* Sets the new border center.
@@ -82,84 +106,106 @@ public interface WorldBorder {
82
106
*
83
107
* @throws IllegalArgumentException if location is <code>null</code> or the absolute value of {@link Location#getX()} or {@link Location#getZ()} is higher than {@link #getMaxCenterCoordinate()}
84
108
*/
85
-
publicvoidsetCenter(@NotNullLocationlocation);
109
+
voidsetCenter(@NotNullLocationlocation);
86
110
87
111
/**
88
112
* Gets the current border damage buffer.
89
113
*
90
114
* @return The current border damage buffer.
91
115
*/
92
-
publicdoublegetDamageBuffer();
116
+
doublegetDamageBuffer();
93
117
94
118
/**
95
119
* Sets the amount of blocks a player may safely be outside the border before taking damage.
96
120
*
97
121
* @param blocks The amount of blocks. (The default is 5 blocks.)
98
122
*/
99
-
publicvoidsetDamageBuffer(doubleblocks);
123
+
voidsetDamageBuffer(doubleblocks);
100
124
101
125
/**
102
126
* Gets the current border damage amount.
103
127
*
104
128
* @return The current border damage amount.
105
129
*/
106
-
publicdoublegetDamageAmount();
130
+
doublegetDamageAmount();
107
131
108
132
/**
109
133
* Sets the amount of damage a player takes when outside the border plus the border buffer.
110
134
*
111
135
* @param damage The amount of damage. (The default is 0.2 damage per second per block.)
112
136
*/
113
-
publicvoidsetDamageAmount(doubledamage);
137
+
voidsetDamageAmount(doubledamage);
114
138
115
139
/**
116
140
* Gets the current border warning time in seconds.
117
141
*
118
142
* @return The current border warning time in seconds.
143
+
* @deprecated Use {@link #getWarningTimeTicks()} instead
+ if (event.getType() == io.papermc.paper.event.world.border.WorldBorderBoundsChangeEvent.Type.STARTED_MOVE && event.getDuration() > 0) { // If changed to a timed transition
+ if (event.getType() == io.papermc.paper.event.world.border.WorldBorderBoundsChangeEvent.Type.STARTED_MOVE && event.getDurationTicks() > 0) { // If changed to a timed transition
0 commit comments