public class BlockBehaviorRailActivator extends BlockBehaviorRail
canBePowered, directionTrait, type| Constructor and Description |
|---|
BlockBehaviorRailActivator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canPowered(Block block,
com.nukkitx.math.vector.Vector3i pos,
RailDirection direction,
int power,
boolean relative) |
protected boolean |
checkSurrounding(Block block,
com.nukkitx.math.vector.Vector3i pos,
boolean relative,
int power)
Check the surrounding of the rail
|
Item[] |
getDrops(Block block,
Item hand) |
int |
onUpdate(Block block,
int type) |
canPassThrough, canPowered, checkRailsConnected, getColor, getHardness, getOrientation, getResistance, getToolType, isAbstract, isActive, place, setActive, setOrientation, toItemcanBeFlooded, getBoundingBox, isSolidisTransparentaddVelocityToEntity, canBeActivated, canBeBrokenWith, canBeClimbed, canBePlaced, canBePushed, canBeReplaced, canHarvestWithHand, canSilkTouch, canWaterlogFlowing, canWaterlogSource, clone, collidesWithBB, collidesWithBB, getBoundingBox, 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, tickRatepublic int onUpdate(Block block, int type)
onUpdate in class BlockBehaviorRailprotected boolean checkSurrounding(Block block, com.nukkitx.math.vector.Vector3i pos, boolean relative, int power)
pos - The rail positionrelative - The relative of the rail that will be checkedpower - The count of the rail that had been countedprotected boolean canPowered(Block block, com.nukkitx.math.vector.Vector3i pos, RailDirection direction, int power, boolean relative)
public Item[] getDrops(Block block, Item hand)
getDrops in class BlockBehaviorRailCopyright © 2020. All rights reserved.