public interface PlayerSimulator
Modifier and Type | Method and Description |
---|---|
boolean |
digBlock(int x,
int y,
int z)
Simulate the digging of the block as if a player had done so.
|
boolean |
digBlock(com.flowpowered.math.vector.Vector3i position)
Simulate the digging of the block as if a player had done so.
|
boolean |
digBlockWith(int x,
int y,
int z,
ItemStack itemStack)
Simulate the digging of the block with the given tool as if a player
had done so.
|
boolean |
digBlockWith(com.flowpowered.math.vector.Vector3i position,
ItemStack itemStack)
Simulate the digging of the block with the given tool as if a player
had done so.
|
int |
getBlockDigTimeWith(int x,
int y,
int z,
ItemStack itemStack)
Gets the time it takes to dig this block the specified item in ticks.
|
int |
getBlockDigTimeWith(com.flowpowered.math.vector.Vector3i position,
ItemStack itemStack)
Gets the time it takes to dig this block the specified item in ticks.
|
void |
interactBlock(int x,
int y,
int z,
Direction side)
Simulates the interaction with this object as if a player had done so.
|
void |
interactBlock(com.flowpowered.math.vector.Vector3i position,
Direction side)
Simulates the interaction with this object as if a player had done so.
|
void |
interactBlockWith(int x,
int y,
int z,
ItemStack itemStack,
Direction side)
Simulates the interaction with this object using the given item as if
the player had done so.
|
void |
interactBlockWith(com.flowpowered.math.vector.Vector3i position,
ItemStack itemStack,
Direction side)
Simulates the interaction with this object using the given item as if
the player had done so.
|
void interactBlock(com.flowpowered.math.vector.Vector3i position, Direction side)
position
- The position of the blockside
- The side of the block to interact withvoid interactBlock(int x, int y, int z, Direction side)
x
- The X positiony
- The Y positionz
- The Z positionside
- The side of the block to interact withvoid interactBlockWith(com.flowpowered.math.vector.Vector3i position, ItemStack itemStack, Direction side)
position
- The position of the blockitemStack
- The itemside
- The side of the block to interact withvoid interactBlockWith(int x, int y, int z, ItemStack itemStack, Direction side)
x
- The X positiony
- The Y positionz
- The Z positionitemStack
- The itemside
- The side of the block to interact withboolean digBlock(com.flowpowered.math.vector.Vector3i position)
position
- The position of the blockboolean digBlock(int x, int y, int z)
x
- The X positiony
- The Y positionz
- The Z positionboolean digBlockWith(com.flowpowered.math.vector.Vector3i position, ItemStack itemStack)
position
- The position of the blockitemStack
- The toolboolean digBlockWith(int x, int y, int z, ItemStack itemStack)
x
- The X positiony
- The Y positionz
- The Z positionitemStack
- The toolint getBlockDigTimeWith(com.flowpowered.math.vector.Vector3i position, ItemStack itemStack)
position
- The position of the blockitemStack
- The item to pretend-dig withint getBlockDigTimeWith(int x, int y, int z, ItemStack itemStack)
x
- The X positiony
- The Y positionz
- The Z positionitemStack
- The item to pretend-dig with