public class BlockBehaviorRailDetector extends BlockBehaviorRail
canBePowered, directionTrait, type| Constructor and Description |
|---|
BlockBehaviorRailDetector() |
| Modifier and Type | Method and Description |
|---|---|
Item[] |
getDrops(Block block,
Item hand) |
int |
getStrongPower(Block block,
Direction side) |
int |
getWeakPower(Block block,
Direction side) |
boolean |
isPowerSource(Block block) |
void |
onEntityCollide(Block block,
Entity entity) |
int |
onUpdate(Block block,
int type) |
protected void |
updateState(Block block) |
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, getBreakTime, getBreakTime, getBurnAbility, getBurnChance, getCollisionBoxes, getComparatorInputOverride, getDescriptionId, getDropExp, getFilterLevel, getFrictionFactor, getLightLevel, getSaveId, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, onActivate, onActivate, onBreak, onBreak, placeBlock, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRatepublic boolean isPowerSource(Block block)
isPowerSource in class BlockBehaviorpublic int getWeakPower(Block block, Direction side)
getWeakPower in class BlockBehaviorpublic int getStrongPower(Block block, Direction side)
getStrongPower in class BlockBehaviorpublic int onUpdate(Block block, int type)
onUpdate in class BlockBehaviorRailpublic void onEntityCollide(Block block, Entity entity)
onEntityCollide in class BlockBehaviorprotected void updateState(Block block)
public Item[] getDrops(Block block, Item hand)
getDrops in class BlockBehaviorRailCopyright © 2020. All rights reserved.