public abstract class TurtleBlockEvent extends TurtlePlayerEvent
TurtleInventoryEvent) do not necessarily interact
with a block, simply objects within that block space.| Modifier and Type | Class and Description |
|---|---|
static class |
TurtleBlockEvent.Dig
Fired when a turtle attempts to dig a block.
|
static class |
TurtleBlockEvent.Inspect
Fired when a turtle gathers data on a block in world.
|
static class |
TurtleBlockEvent.Move
Fired when a turtle attempts to move into a block.
|
static class |
TurtleBlockEvent.Place
Fired when a turtle attempts to place a block in the world.
|
| Modifier | Constructor and Description |
|---|---|
protected |
TurtleBlockEvent(ITurtleAccess turtle,
TurtleAction action,
net.minecraftforge.common.util.FakePlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.math.BlockPos |
getPos()
Get the position the turtle is interacting with.
|
net.minecraft.world.World |
getWorld()
Get the world the turtle is interacting in.
|
getPlayergetAction, getFailureMessage, setCanceled, setCanceledgetTurtleprotected TurtleBlockEvent(@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)
public net.minecraft.world.World getWorld()
public net.minecraft.util.math.BlockPos getPos()
ITurtleAccess.getPosition().