1
+ /*
2
+ * This program is free software: you can redistribute it and/or modify
3
+ * it under the terms of the GNU General Public License as published by
4
+ * the Free Software Foundation, either version 3 of the License, or
5
+ * (at your option) any later version.
6
+ *
7
+ * This program is distributed in the hope that it will be useful,
8
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ * GNU General Public License for more details.
11
+ *
12
+ * You should have received a copy of the GNU General Public License
13
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
14
+ */
15
+
16
+ package com .cheatbreaker .api .object ;
17
+
18
+ import com .cheatbreaker .api .CheatBreakerAPI ;
19
+ import lombok .AllArgsConstructor ;
20
+ import lombok .EqualsAndHashCode ;
21
+ import lombok .Getter ;
22
+ import org .bukkit .Location ;
23
+
24
+ @ EqualsAndHashCode
25
+ @ AllArgsConstructor
26
+ public final class CBWorldBorder {
27
+
28
+ @ Getter private final String id ;
29
+ @ Getter private final String world ;
30
+ @ Getter private final boolean cancelsExit ;
31
+ @ Getter private final boolean canShrinkExpand ;
32
+ @ Getter private final int color ;
33
+ @ Getter private final double min_x ;
34
+ @ Getter private final double min_z ;
35
+ @ Getter private final double max_x ;
36
+ @ Getter private final double max_z ;
37
+
38
+ public CBWorldBorder (String id , Location locationmin , Location locationmax , int color , boolean cancelsExit , boolean canShrinkExpand ) {
39
+ this (
40
+ id ,
41
+ CheatBreakerAPI .getInstance ().getWorldIdentifier (locationmin .getWorld ()),
42
+ cancelsExit ,
43
+ canShrinkExpand ,
44
+ color ,
45
+ locationmin .getBlockX (),
46
+ locationmin .getBlockZ (),
47
+ locationmax .getBlockX (),
48
+ locationmax .getBlockZ ()
49
+ );
50
+ }
51
+
52
+ }
0 commit comments