use of net.minecraft.server.v1_15_R1.TileEntityChest in project solinia3-core by mixxit.
the class PatchUtils method listToInventory.
public Inventory listToInventory(NBTTagList nbttaglist) {
TileEntityChest tileentitychest = new TileEntityChest();
for (int i = 0; i < nbttaglist.size(); i++) {
NBTTagCompound nbttagcompound = (NBTTagCompound) nbttaglist.get(i);
int j = nbttagcompound.getByte("Slot") & 0xFF;
if (j >= 0 && j < 27) {
tileentitychest.setItem(j, net.minecraft.server.v1_15_R1.ItemStack.a(nbttagcompound));
}
}
return new CraftInventory(tileentitychest);
}
Aggregations