public class RailTypeActivator extends RailTypeRegular
ACTIVATOR_OFF, ACTIVATOR_ON, BOOST, BRAKE, CROSSING, DETECTOR, NONE, REGULAR, VERTICAL
Modifier | Constructor and Description |
---|---|
protected |
RailTypeActivator(boolean isPowered) |
Modifier and Type | Method and Description |
---|---|
boolean |
isPowered() |
boolean |
isRail(com.bergerkiller.bukkit.common.wrappers.BlockData blockData)
Checks whether the block data given denote this type of Rail.
|
void |
onBlockPhysics(org.bukkit.event.block.BlockPhysicsEvent event)
Called when block physics are being performed for a Block matching this Rail Type.
|
void |
onBlockPlaced(org.bukkit.block.Block railsBlock)
Called one tick after a block of this Rail Type was placed down in the world
|
getDirection, getJunctions, getLogic, getLogicForRails, getNextPos, getNextPos, getPossibleDirections, getPossibleDirections, getRailsTexture, getRailsTexturePath, getSpawnLocation, isSlopeUpwardsTo, isUpsideDown, switchJunction
findMinecartPos, findRail, getSignColumnDirection, isHeadOnCollision, onBlockCollision
findRailPiece, findRailPiece, findRails, getBoundingBox, getLogic, getSignColumnStart, getType, handleCriticalError, isComplexRailBlock, isRail, isRail, isRail, isRailsSupported, loadRailInformation, onCollide, onPostMove, onPreMove, register, takeJunction, unregister, values
public boolean isPowered()
public void onBlockPlaced(org.bukkit.block.Block railsBlock)
RailType
onBlockPlaced
in class RailTypeRegular
railsBlock
- that was placedpublic void onBlockPhysics(org.bukkit.event.block.BlockPhysicsEvent event)
RailType
onBlockPhysics
in class RailTypeRegular
event
- block physics eventpublic boolean isRail(com.bergerkiller.bukkit.common.wrappers.BlockData blockData)
RailType
#isRail(world, x, y, z)
exclusively.
If the rails is more complex than one type of Block, override that method
and ignore this one.isRail
in class RailTypeRegular
blockData
- of the BlockCopyright © 2019. All rights reserved.