public abstract class TurtleInventoryEvent extends TurtleBlockEvent
| Modifier and Type | Class and Description |
|---|---|
static class |
TurtleInventoryEvent.Drop
Fired when a turtle attempts to drop an item into an inventory.
|
static class |
TurtleInventoryEvent.Suck
Fired when a turtle attempts to suck from an inventory.
|
TurtleBlockEvent.Dig, TurtleBlockEvent.Inspect, TurtleBlockEvent.Move, TurtleBlockEvent.Place| Modifier | Constructor and Description |
|---|---|
protected |
TurtleInventoryEvent(ITurtleAccess turtle,
TurtleAction action,
net.minecraftforge.common.util.FakePlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraftforge.items.IItemHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraftforge.items.IItemHandler |
getItemHandler()
Get the inventory being interacted with
|
getPos, getWorldgetPlayergetAction, getFailureMessage, setCanceled, setCanceledgetTurtleprotected TurtleInventoryEvent(@Nonnull
ITurtleAccess turtle,
@Nonnull
TurtleAction action,
@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)