use of org.bukkit.craftbukkit.v1_17_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);
}
use of org.bukkit.craftbukkit.v1_17_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);
}
use of org.bukkit.craftbukkit.v1_17_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);
}
use of org.bukkit.craftbukkit.v1_17_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);
}
use of org.bukkit.craftbukkit.v1_17_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);
}
Aggregations