use of net.minecraft.world.inventory.PlayerEnderChestContainer in project Denizen-For-Bukkit by DenizenScript.
the class ImprovedOfflinePlayerImpl method getEnderChest.
@Override
public Inventory getEnderChest() {
if (offlineEnderChests.containsKey(getUniqueId())) {
return offlineEnderChests.get(getUniqueId());
}
PlayerEnderChestContainer endchest = new PlayerEnderChestContainer(null);
endchest.fromTag(((CompoundTagImpl) this.compound).toNMSTag().getList("EnderItems", 10));
org.bukkit.inventory.Inventory inv = new CraftInventory(endchest);
offlineEnderChests.put(getUniqueId(), inv);
return inv;
}
use of net.minecraft.world.inventory.PlayerEnderChestContainer in project Denizen-For-Bukkit by DenizenScript.
the class ImprovedOfflinePlayerImpl method getEnderChest.
@Override
public Inventory getEnderChest() {
if (offlineEnderChests.containsKey(getUniqueId())) {
return offlineEnderChests.get(getUniqueId());
}
PlayerEnderChestContainer endchest = new PlayerEnderChestContainer(null);
endchest.fromTag(((CompoundTagImpl) this.compound).toNMSTag().getList("EnderItems", 10));
org.bukkit.inventory.Inventory inv = new CraftInventory(endchest);
offlineEnderChests.put(getUniqueId(), inv);
return inv;
}
Aggregations