Search in sources :

Example 1 with CraftHumanEntity

use of org.bukkit.craftbukkit.v1_12_R1.entity.CraftHumanEntity in project WildChests by BG-Software-LLC.

the class NMSAdapter_v1_18_R1 method dropItemAsPlayer.

@Override
public void dropItemAsPlayer(HumanEntity humanEntity, org.bukkit.inventory.ItemStack bukkitItem) {
    EntityHuman entityHuman = ((CraftHumanEntity) humanEntity).getHandle();
    ItemStack itemStack = CraftItemStack.asNMSCopy(bukkitItem);
    drop(entityHuman, itemStack, false);
}
Also used : EntityHuman(net.minecraft.world.entity.player.EntityHuman) CraftHumanEntity(org.bukkit.craftbukkit.v1_18_R1.entity.CraftHumanEntity) CraftItemStack(org.bukkit.craftbukkit.v1_18_R1.inventory.CraftItemStack) ItemStack(net.minecraft.world.item.ItemStack)

Example 2 with CraftHumanEntity

use of org.bukkit.craftbukkit.v1_12_R1.entity.CraftHumanEntity in project WildChests by BG-Software-LLC.

the class NMSAdapter_v1_18_R2 method dropItemAsPlayer.

@Override
public void dropItemAsPlayer(HumanEntity humanEntity, org.bukkit.inventory.ItemStack bukkitItem) {
    EntityHuman entityHuman = ((CraftHumanEntity) humanEntity).getHandle();
    ItemStack itemStack = CraftItemStack.asNMSCopy(bukkitItem);
    drop(entityHuman, itemStack, false);
}
Also used : EntityHuman(net.minecraft.world.entity.player.EntityHuman) CraftHumanEntity(org.bukkit.craftbukkit.v1_18_R2.entity.CraftHumanEntity) CraftItemStack(org.bukkit.craftbukkit.v1_18_R2.inventory.CraftItemStack) ItemStack(net.minecraft.world.item.ItemStack)

Example 3 with CraftHumanEntity

use of org.bukkit.craftbukkit.v1_12_R1.entity.CraftHumanEntity in project WildChests by BG-Software-LLC.

the class NMSAdapter_v1_16_R3 method dropItemAsPlayer.

@Override
public void dropItemAsPlayer(HumanEntity humanEntity, org.bukkit.inventory.ItemStack bukkitItem) {
    EntityHuman entityHuman = ((CraftHumanEntity) humanEntity).getHandle();
    ItemStack itemStack = CraftItemStack.asNMSCopy(bukkitItem);
    entityHuman.drop(itemStack, false);
}
Also used : EntityHuman(net.minecraft.server.v1_16_R3.EntityHuman) CraftHumanEntity(org.bukkit.craftbukkit.v1_16_R3.entity.CraftHumanEntity) CraftItemStack(org.bukkit.craftbukkit.v1_16_R3.inventory.CraftItemStack) ItemStack(net.minecraft.server.v1_16_R3.ItemStack)

Example 4 with CraftHumanEntity

use of org.bukkit.craftbukkit.v1_12_R1.entity.CraftHumanEntity in project WildChests by BG-Software-LLC.

the class NMSAdapter_v1_8_R3 method dropItemAsPlayer.

@Override
public void dropItemAsPlayer(HumanEntity humanEntity, org.bukkit.inventory.ItemStack bukkitItem) {
    EntityHuman entityHuman = ((CraftHumanEntity) humanEntity).getHandle();
    ItemStack itemStack = CraftItemStack.asNMSCopy(bukkitItem);
    entityHuman.drop(itemStack, false);
}
Also used : EntityHuman(net.minecraft.server.v1_8_R3.EntityHuman) CraftHumanEntity(org.bukkit.craftbukkit.v1_8_R3.entity.CraftHumanEntity) ItemStack(net.minecraft.server.v1_8_R3.ItemStack) CraftItemStack(org.bukkit.craftbukkit.v1_8_R3.inventory.CraftItemStack)

Example 5 with CraftHumanEntity

use of org.bukkit.craftbukkit.v1_12_R1.entity.CraftHumanEntity in project WildChests by BG-Software-LLC.

the class NMSAdapter_v1_12_R1 method dropItemAsPlayer.

@Override
public void dropItemAsPlayer(HumanEntity humanEntity, org.bukkit.inventory.ItemStack bukkitItem) {
    EntityHuman entityHuman = ((CraftHumanEntity) humanEntity).getHandle();
    ItemStack itemStack = CraftItemStack.asNMSCopy(bukkitItem);
    entityHuman.drop(itemStack, false);
}
Also used : EntityHuman(net.minecraft.server.v1_12_R1.EntityHuman) CraftHumanEntity(org.bukkit.craftbukkit.v1_12_R1.entity.CraftHumanEntity) CraftItemStack(org.bukkit.craftbukkit.v1_12_R1.inventory.CraftItemStack) ItemStack(net.minecraft.server.v1_12_R1.ItemStack)

Aggregations

EntityHuman (net.minecraft.world.entity.player.EntityHuman)3 ItemStack (net.minecraft.world.item.ItemStack)3 Iterator (java.util.Iterator)1 Map (java.util.Map)1 Enchantment (net.minecraft.server.v1_11_R1.Enchantment)1 EntityHuman (net.minecraft.server.v1_11_R1.EntityHuman)1 ItemNameTag (net.minecraft.server.v1_11_R1.ItemNameTag)1 ItemStack (net.minecraft.server.v1_11_R1.ItemStack)1 EntityHuman (net.minecraft.server.v1_12_R1.EntityHuman)1 ItemStack (net.minecraft.server.v1_12_R1.ItemStack)1 EntityHuman (net.minecraft.server.v1_16_R3.EntityHuman)1 ItemStack (net.minecraft.server.v1_16_R3.ItemStack)1 EntityHuman (net.minecraft.server.v1_8_R3.EntityHuman)1 ItemStack (net.minecraft.server.v1_8_R3.ItemStack)1 CraftHumanEntity (org.bukkit.craftbukkit.v1_11_R1.entity.CraftHumanEntity)1 CraftHumanEntity (org.bukkit.craftbukkit.v1_12_R1.entity.CraftHumanEntity)1 CraftItemStack (org.bukkit.craftbukkit.v1_12_R1.inventory.CraftItemStack)1 CraftHumanEntity (org.bukkit.craftbukkit.v1_16_R3.entity.CraftHumanEntity)1 CraftItemStack (org.bukkit.craftbukkit.v1_16_R3.inventory.CraftItemStack)1 CraftHumanEntity (org.bukkit.craftbukkit.v1_17_R1.entity.CraftHumanEntity)1