use of org.bukkit.craftbukkit.v1_14_R1.inventory.CraftInventory in project Denizen-For-Bukkit by DenizenScript.
the class ImprovedOfflinePlayer_v1_9_R2 method getEnderChest.
@Override
public Inventory getEnderChest() {
if (offlineEnderChests.containsKey(getUniqueId())) {
return offlineEnderChests.get(getUniqueId());
}
InventoryEnderChest endchest = new InventoryEnderChest();
endchest.a(((CompoundTag_v1_9_R2) this.compound).toNMSTag().getList("EnderItems", 10));
Inventory inv = new CraftInventory(endchest);
offlineEnderChests.put(getUniqueId(), inv);
return inv;
}
use of org.bukkit.craftbukkit.v1_14_R1.inventory.CraftInventory in project Denizen-For-Bukkit by DenizenScript.
the class ImprovedOfflinePlayer_v1_11_R1 method getEnderChest.
@Override
public Inventory getEnderChest() {
if (offlineEnderChests.containsKey(getUniqueId())) {
return offlineEnderChests.get(getUniqueId());
}
InventoryEnderChest endchest = new InventoryEnderChest(null);
endchest.a(((CompoundTag_v1_11_R1) this.compound).toNMSTag().getList("EnderItems", 10));
org.bukkit.inventory.Inventory inv = new CraftInventory(endchest);
offlineEnderChests.put(getUniqueId(), inv);
return inv;
}
use of org.bukkit.craftbukkit.v1_14_R1.inventory.CraftInventory in project Denizen-For-Bukkit by DenizenScript.
the class ImprovedOfflinePlayerImpl method getEnderChest.
@Override
public Inventory getEnderChest() {
if (offlineEnderChests.containsKey(getUniqueId())) {
return offlineEnderChests.get(getUniqueId());
}
InventoryEnderChest endchest = new InventoryEnderChest(null);
endchest.a(((CompoundTagImpl) this.compound).toNMSTag().getList("EnderItems", 10));
org.bukkit.inventory.Inventory inv = new CraftInventory(endchest);
offlineEnderChests.put(getUniqueId(), inv);
return inv;
}
use of org.bukkit.craftbukkit.v1_14_R1.inventory.CraftInventory 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 org.bukkit.craftbukkit.v1_14_R1.inventory.CraftInventory 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