public static class TurtleInventoryEvent.Drop extends TurtleInventoryEvent
TurtleAction.DROP
TurtleInventoryEvent.Drop, TurtleInventoryEvent.Suck
TurtleBlockEvent.Dig, TurtleBlockEvent.Inspect, TurtleBlockEvent.Move, TurtleBlockEvent.Place
Constructor and Description |
---|
Drop(ITurtleAccess turtle,
net.minecraftforge.common.util.FakePlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraftforge.items.IItemHandler handler,
net.minecraft.item.ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.item.ItemStack |
getStack()
The item which will be inserted into the inventory/dropped on the ground.
|
getItemHandler
getPos, getWorld
getPlayer
getAction, getFailureMessage, setCanceled, setCanceled
getTurtle
public Drop(@Nonnull ITurtleAccess turtle, @Nonnull net.minecraftforge.common.util.FakePlayer player, @Nonnull net.minecraft.world.World world, @Nonnull net.minecraft.util.math.BlockPos pos, @Nullable net.minecraftforge.items.IItemHandler handler, @Nonnull net.minecraft.item.ItemStack stack)