public class BlockBehaviorRail extends FloodableBlockBehavior
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
canBePowered |
protected BlockTrait<RailDirection> |
directionTrait |
protected Identifier |
type |
| Constructor and Description |
|---|
BlockBehaviorRail(Identifier type,
BlockTrait<RailDirection> directionTrait) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPassThrough() |
boolean |
canPowered() |
protected Map<Block,Direction> |
checkRailsConnected(Block block) |
BlockColor |
getColor(Block block) |
Item[] |
getDrops(Block block,
Item hand) |
float |
getHardness() |
RailDirection |
getOrientation(BlockState state) |
float |
getResistance() |
int |
getToolType() |
boolean |
isAbstract() |
boolean |
isActive(BlockState state) |
int |
onUpdate(Block block,
int type) |
boolean |
place(Item item,
Block block,
Block target,
Direction face,
com.nukkitx.math.vector.Vector3f clickPos,
Player player) |
void |
setActive(Block block,
boolean active) |
void |
setOrientation(Block block,
RailDirection o) |
Item |
toItem(Block block) |
canBeFlooded, getBoundingBox, isSolidisTransparentaddVelocityToEntity, canBeActivated, canBeBrokenWith, canBeClimbed, canBePlaced, canBePushed, canBeReplaced, canHarvestWithHand, canSilkTouch, canWaterlogFlowing, canWaterlogSource, clone, collidesWithBB, collidesWithBB, getBreakTime, getBreakTime, getBurnAbility, getBurnChance, getCollisionBoxes, getComparatorInputOverride, getDescriptionId, getDropExp, getFilterLevel, getFrictionFactor, getLightLevel, getSaveId, getStrongPower, getWeakPower, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, isPowerSource, onActivate, onActivate, onBreak, onBreak, onEntityCollide, placeBlock, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRateprotected final Identifier type
protected final BlockTrait<RailDirection> directionTrait
protected boolean canBePowered
public BlockBehaviorRail(Identifier type, BlockTrait<RailDirection> directionTrait)
public float getHardness()
getHardness in class FloodableBlockBehaviorpublic float getResistance()
getResistance in class FloodableBlockBehaviorpublic boolean canPassThrough()
canPassThrough in class FloodableBlockBehaviorpublic int getToolType()
getToolType in class BlockBehaviorpublic int onUpdate(Block block, int type)
onUpdate in class BlockBehaviorpublic BlockColor getColor(Block block)
getColor in class BlockBehaviorTransparentpublic boolean place(Item item, Block block, Block target, Direction face, com.nukkitx.math.vector.Vector3f clickPos, Player player)
place in class BlockBehaviorpublic boolean isAbstract()
public boolean canPowered()
public RailDirection getOrientation(BlockState state)
public void setOrientation(Block block, RailDirection o)
public boolean isActive(BlockState state)
public void setActive(Block block, boolean active)
public Item toItem(Block block)
toItem in class BlockBehaviorpublic Item[] getDrops(Block block, Item hand)
getDrops in class BlockBehaviorCopyright © 2020. All rights reserved.