Skip to content

Commit 32560a5

Browse files
Merge pull request #149 from Exceptionflug/create-base-itemstack
Make inheritance of ItemStack easier
2 parents 62e08f0 + 7ca5af0 commit 32560a5

File tree

1 file changed

+6
-6
lines changed
  • protocolize-api/src/main/java/dev/simplix/protocolize/api/item

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class ItemStack implements BaseItemStack {
2929

3030
public static final ItemStack NO_DATA = new ItemStack(null);
3131

32-
private static final ComponentConverter CONVERTER = Protocolize.getService(ComponentConverterProvider.class)
32+
protected static final ComponentConverter CONVERTER = Protocolize.getService(ComponentConverterProvider.class)
3333
.platformConverter();
3434

3535
@Getter(AccessLevel.PACKAGE)
@@ -40,11 +40,11 @@ public class ItemStack implements BaseItemStack {
4040
@Setter(AccessLevel.PACKAGE)
4141
private List<String> loreJson = new ArrayList<>();
4242

43-
private ItemType itemType;
44-
private CompoundTag nbtData = new CompoundTag();
45-
private byte amount;
46-
private short durability;
47-
private int hideFlags;
43+
protected ItemType itemType;
44+
protected CompoundTag nbtData = new CompoundTag();
45+
protected byte amount;
46+
protected short durability;
47+
protected int hideFlags;
4848

4949
public ItemStack(ItemType itemType) {
5050
this(itemType, 1);

0 commit comments

Comments
 (0)