public class BlockBehaviorRailActivator extends BlockBehaviorRail
canBePowered, directionTrait, type| Constructor and Description |
|---|
BlockBehaviorRailActivator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canPowered(org.cloudburstmc.api.block.Block block,
com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.util.data.RailDirection direction,
int power,
boolean relative) |
protected boolean |
checkSurrounding(org.cloudburstmc.api.block.Block block,
com.nukkitx.math.vector.Vector3i pos,
boolean relative,
int power)
Check the surrounding of the rail
|
org.cloudburstmc.api.item.ItemStack[] |
getDrops(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.item.ItemStack hand) |
int |
onUpdate(org.cloudburstmc.api.block.Block block,
int type) |
canPowered, checkRailsConnected, getColor, getOrientation, isAbstract, isActive, place, setActive, setOrientation, toItemgetBreakTime, placeBlockaddVelocityToEntity, canBeActivated, canBeBrokenWith, canBeClimbed, canBeFlooded, canBePlaced, canBePushed, canBeReplaced, canHarvestWithHand, canPassThrough, canSilkTouch, canWaterlogFlowing, canWaterlogSource, checkTool, clone, collidesWithBB, collidesWithBB, getBoundingBox, getBoundingBox, getBoundingBox, getBurnAbility, getBurnChance, getCollisionBoxes, getCollisionBoxes, getComparatorInputOverride, getDescriptionId, getDropExp, getFilterLevel, getFrictionFactor, getHardness, getLightLevel, getMinimalTier, getResistance, getSaveId, getStrongPower, getToolType, getWeakPower, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, isPowerSource, isSolid, isTransparent, onActivate, onActivate, onBreak, onBreak, onEntityCollide, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRatepublic int onUpdate(org.cloudburstmc.api.block.Block block,
int type)
onUpdate in class BlockBehaviorRailprotected boolean checkSurrounding(org.cloudburstmc.api.block.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(org.cloudburstmc.api.block.Block block,
com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.util.data.RailDirection direction,
int power,
boolean relative)
public org.cloudburstmc.api.item.ItemStack[] getDrops(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.item.ItemStack hand)
getDrops in class BlockBehaviorRailCopyright © 2021. All rights reserved.