Skip to content

Commit

Permalink
Use the game's constants for NBT types
Browse files Browse the repository at this point in the history
  • Loading branch information
altrisi committed Oct 13, 2023
1 parent c6eec9c commit e3d11f7
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/main/java/carpet/helpers/InventoryHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,10 @@
import net.minecraft.nbt.CompoundTag;
import net.minecraft.world.item.ItemStack;

import static net.minecraft.nbt.Tag.*;

public class InventoryHelper
{
// From nbt/NbtElement.java createTag()
public static final int TAG_END = 0;
public static final int TAG_BYTE = 1;
public static final int TAG_SHORT = 2;
public static final int TAG_INT = 3;
public static final int TAG_LONG = 4;
public static final int TAG_FLOAT = 5;
public static final int TAG_DOUBLE = 6;
public static final int TAG_BYTEARRAY = 7;
public static final int TAG_STRING = 8;
public static final int TAG_LIST = 9;
public static final int TAG_COMPOUND = 10;
public static final int TAG_INTARRAY = 11;
public static final int TAG_LONGARRAY = 12;

public static boolean cleanUpShulkerBoxTag(ItemStack stack)
{
boolean changed = false;
Expand Down

0 comments on commit e3d11f7

Please sign in to comment.