Skip to content

Commit 19d9484

Browse files
committed
Make fields private
1 parent 56a08c8 commit 19d9484

File tree

9 files changed

+55
-55
lines changed

9 files changed

+55
-55
lines changed

protocolize-api/src/main/java/dev/simplix/protocolize/api/item/Attribute.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
@NoArgsConstructor
1313
public class Attribute {
1414

15-
AttributeType type;
16-
UUID uuid;
17-
String name;
18-
double value;
19-
Operation operation;
20-
EquipmentSlot slot;
15+
private AttributeType type;
16+
private UUID uuid;
17+
private String name;
18+
private double value;
19+
private Operation operation;
20+
private EquipmentSlot slot;
2121

2222
/* These may change in the future */
2323
public enum Operation {

protocolize-api/src/main/java/dev/simplix/protocolize/api/item/BannerLayer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
@AllArgsConstructor
99
@NoArgsConstructor
1010
public class BannerLayer {
11-
boolean direct;
12-
int patternType;
13-
String identifier;
14-
String translationKey;
15-
DyeColor color;
11+
private boolean direct;
12+
private int patternType;
13+
private String identifier;
14+
private String translationKey;
15+
private DyeColor color;
1616
}

protocolize-api/src/main/java/dev/simplix/protocolize/api/item/Bee.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@AllArgsConstructor
1010
@NoArgsConstructor
1111
public class Bee {
12-
CompoundTag entityData;
13-
int ticksInHive;
14-
int minTicksInHive;
12+
private CompoundTag entityData;
13+
private int ticksInHive;
14+
private int minTicksInHive;
1515
}

protocolize-api/src/main/java/dev/simplix/protocolize/api/item/BlockPredicate.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
@NoArgsConstructor
1313
public class BlockPredicate {
1414

15-
BlockSet blockSet;
16-
List<Property> properties;
17-
CompoundTag nbtData;
15+
private BlockSet blockSet;
16+
private List<Property> properties;
17+
private CompoundTag nbtData;
1818

1919
@Data
2020
@AllArgsConstructor
2121
@NoArgsConstructor
2222
public static class Property {
23-
String name;
24-
String exactValue;
25-
String minValue;
26-
String maxValue;
23+
private String name;
24+
private String exactValue;
25+
private String minValue;
26+
private String maxValue;
2727
}
2828

2929
}

protocolize-api/src/main/java/dev/simplix/protocolize/api/item/BlockSet.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@AllArgsConstructor
1111
@NoArgsConstructor
1212
public class BlockSet {
13-
Integer type;
14-
String identifier;
15-
List<Integer> blockIds;
13+
private Integer type;
14+
private String identifier;
15+
private List<Integer> blockIds;
1616
}

protocolize-api/src/main/java/dev/simplix/protocolize/api/item/Book.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111
@AllArgsConstructor
1212
@NoArgsConstructor
1313
public class Book {
14-
String title;
15-
String filteredTitle;
16-
String author;
17-
int generation;
18-
List<Page> pages;
19-
boolean resolved;
14+
private String title;
15+
private String filteredTitle;
16+
private String author;
17+
private int generation;
18+
private List<Page> pages;
19+
private boolean resolved;
2020

2121
@Data
2222
@AllArgsConstructor
2323
@NoArgsConstructor
2424
public static class Page {
25-
ChatElement<?> content;
26-
ChatElement<?> filteredContent;
25+
private ChatElement<?> content;
26+
private ChatElement<?> filteredContent;
2727
}
2828
}

protocolize-api/src/main/java/dev/simplix/protocolize/api/item/Firework.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111
@NoArgsConstructor
1212
public class Firework {
1313

14-
int flightDuration;
15-
List<Meta> explosions;
14+
private int flightDuration;
15+
private List<Meta> explosions;
1616

1717
@Data
1818
@AllArgsConstructor
1919
@NoArgsConstructor
2020
public static class Meta {
21-
Shape shape;
22-
List<Integer> colors;
23-
List<Integer> fadeColors;
24-
boolean trail;
25-
boolean twinkle;
21+
private Shape shape;
22+
private List<Integer> colors;
23+
private List<Integer> fadeColors;
24+
private boolean trail;
25+
private boolean twinkle;
2626

2727
public enum Shape {
2828
SMALL_BALL,

protocolize-api/src/main/java/dev/simplix/protocolize/api/item/SoundEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@AllArgsConstructor
1111
@NoArgsConstructor
1212
public class SoundEvent {
13-
Sound sound;
14-
String identifier;
15-
Float fixedRange;
13+
private Sound sound;
14+
private String identifier;
15+
private Float fixedRange;
1616
}

protocolize-api/src/main/java/dev/simplix/protocolize/api/item/Trim.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,30 @@
1212
@NoArgsConstructor
1313
public class Trim {
1414

15-
Integer materialType;
16-
TrimMaterial trimMaterial;
17-
Integer patternType;
18-
TrimPattern trimPattern;
15+
private Integer materialType;
16+
private TrimMaterial trimMaterial;
17+
private Integer patternType;
18+
private TrimPattern trimPattern;
1919

2020
@Data
2121
@AllArgsConstructor
2222
@NoArgsConstructor
2323
public static class TrimMaterial {
24-
String assetName;
25-
int ingredient;
26-
float itemModelIndex;
27-
Map<Integer, String> overrides;
28-
ChatElement<?> description;
24+
private String assetName;
25+
private int ingredient;
26+
private float itemModelIndex;
27+
private Map<Integer, String> overrides;
28+
private ChatElement<?> description;
2929
}
3030

3131
@Data
3232
@AllArgsConstructor
3333
@NoArgsConstructor
3434
public static class TrimPattern {
35-
String assetName;
36-
int templateItem;
37-
ChatElement<?> description;
38-
boolean decal;
35+
private String assetName;
36+
private int templateItem;
37+
private ChatElement<?> description;
38+
private boolean decal;
3939
}
4040

4141
}

0 commit comments

Comments
 (0)