public class BlockBehaviorRedstoneWire extends FloodableBlockBehavior
| Constructor and Description |
|---|
BlockBehaviorRedstoneWire() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBePlacedOn(BlockState state) |
protected static boolean |
canConnectTo(Block block,
Direction side) |
protected static boolean |
canConnectUpwardsTo(Level level,
com.nukkitx.math.vector.Vector3i pos) |
BlockColor |
getColor(Block block) |
int |
getStrongPower(Block block,
Direction side) |
int |
getWeakPower(Block block,
Direction side) |
boolean |
isPowerSource(Block block) |
boolean |
onBreak(Block block,
Item item) |
int |
onUpdate(Block block,
int type) |
boolean |
place(Item item,
Block block,
Block target,
Direction face,
com.nukkitx.math.vector.Vector3f clickPos,
Player player) |
Item |
toItem(Block block) |
canBeFlooded, canPassThrough, getBoundingBox, getHardness, getResistance, isSolidisTransparentaddVelocityToEntity, canBeActivated, canBeBrokenWith, canBeClimbed, canBePlaced, canBePushed, canBeReplaced, canHarvestWithHand, canSilkTouch, canWaterlogFlowing, canWaterlogSource, clone, collidesWithBB, collidesWithBB, getBoundingBox, getBreakTime, getBreakTime, getBurnAbility, getBurnChance, getCollisionBoxes, getComparatorInputOverride, getDescriptionId, getDropExp, getDrops, getFilterLevel, getFrictionFactor, getLightLevel, getSaveId, getToolType, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, onActivate, onActivate, onBreak, onEntityCollide, placeBlock, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRateprotected static boolean canConnectUpwardsTo(Level level, com.nukkitx.math.vector.Vector3i pos)
public boolean place(Item item, Block block, Block target, Direction face, com.nukkitx.math.vector.Vector3f clickPos, Player player)
place in class BlockBehaviorpublic boolean onBreak(Block block, Item item)
onBreak in class BlockBehaviorpublic BlockColor getColor(Block block)
getColor in class BlockBehaviorTransparentpublic Item toItem(Block block)
toItem in class BlockBehaviorpublic int getStrongPower(Block block, Direction side)
getStrongPower in class BlockBehaviorpublic int getWeakPower(Block block, Direction side)
getWeakPower in class BlockBehaviorpublic int onUpdate(Block block, int type)
onUpdate in class BlockBehaviorpublic boolean canBePlacedOn(BlockState state)
public boolean isPowerSource(Block block)
isPowerSource in class BlockBehaviorCopyright © 2020. All rights reserved.