public static class RobotBreakBlockEvent.Pre extends RobotBreakBlockEvent
RobotBreakBlockEvent.Post, RobotBreakBlockEvent.Pre| Modifier and Type | Field and Description |
|---|---|
net.minecraft.world.World |
world
The world in which the block will be broken.
|
int |
x
The coordinates at which the block will be broken.
|
int |
y
The coordinates at which the block will be broken.
|
int |
z
The coordinates at which the block will be broken.
|
robot| Constructor and Description |
|---|
RobotBreakBlockEvent.Pre(Robot robot,
net.minecraft.world.World world,
int x,
int y,
int z,
double breakTime) |
| Modifier and Type | Method and Description |
|---|---|
double |
getBreakTime()
Gets the time that it will take to break the block.
|
void |
setBreakTime(double breakTime)
Sets the time it should take the robot to break the block.
|
public final net.minecraft.world.World world
public final int x
public final int y
public final int z
public RobotBreakBlockEvent.Pre(Robot robot, net.minecraft.world.World world, int x, int y, int z, double breakTime)
public void setBreakTime(double breakTime)
breakTime - the time in seconds the break operation takes.public double getBreakTime()
setBreakTime(double)