Search in sources :

Example 1 with CraftHumanEntity

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);
}
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_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);
}
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_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);
}
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_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);
}
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_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);
}
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

Location (org.bukkit.Location)6 LootContext (org.bukkit.loot.LootContext)6 CraftHumanEntity (org.bukkit.craftbukkit.v1_16_R3.entity.CraftHumanEntity)5 Vector3d (net.minecraft.util.math.vector.Vector3d)4 CraftEntity (org.bukkit.craftbukkit.v1_16_R3.entity.CraftEntity)4 EntityHuman (net.minecraft.world.entity.player.EntityHuman)3 ItemStack (net.minecraft.world.item.ItemStack)3 CraftHumanEntity (org.bukkit.craftbukkit.v1_18_R2.entity.CraftHumanEntity)3 Entity (net.minecraft.entity.Entity)2 PlayerEntity (net.minecraft.entity.player.PlayerEntity)2 LootParameterSet (net.minecraft.loot.LootParameterSet)2 BlockPos (net.minecraft.util.math.BlockPos)2 Vec3 (net.minecraft.world.phys.Vec3)2 ServerWorld (net.minecraft.world.server.ServerWorld)2 CraftEntity (org.bukkit.craftbukkit.v1_18_R2.entity.CraftEntity)2 Iterator (java.util.Iterator)1 Map (java.util.Map)1 ServerLevel (net.minecraft.server.level.ServerLevel)1 Enchantment (net.minecraft.server.v1_11_R1.Enchantment)1 EntityHuman (net.minecraft.server.v1_11_R1.EntityHuman)1