public class ElevatorEvent
extends net.minecraftforge.fml.common.eventhandler.Event
Modifier and Type | Field and Description |
---|---|
BlockElevator |
elevator
The block for the elevator being taken
|
boolean |
goingUp
True when the player is jumping and so will be going to the elevator above
|
net.minecraft.entity.player.EntityPlayerMP |
player
The player taking the elevator
|
Constructor and Description |
---|
ElevatorEvent(net.minecraft.entity.player.EntityPlayerMP player,
BlockElevator elevator,
boolean goingUp,
net.minecraft.util.math.BlockPos destination) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.math.BlockPos |
getDestination()
Gets the currently selected destination for the elevator.
|
void |
setDestination(net.minecraft.util.math.BlockPos destination)
Sets the destination block position.
|
public final net.minecraft.entity.player.EntityPlayerMP player
public final BlockElevator elevator
public final boolean goingUp
public ElevatorEvent(net.minecraft.entity.player.EntityPlayerMP player, BlockElevator elevator, boolean goingUp, net.minecraft.util.math.BlockPos destination)
public net.minecraft.util.math.BlockPos getDestination()
public void setDestination(net.minecraft.util.math.BlockPos destination)