public class BlockBehaviorTripWireHook extends FloodableBlockBehavior
| Constructor and Description |
|---|
BlockBehaviorTripWireHook() |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateState(Block block,
boolean onBreak,
boolean updateAround,
int pos,
BlockState blockState) |
boolean |
canWaterlogFlowing() |
boolean |
canWaterlogSource() |
int |
getStrongPower(Block block,
Direction side) |
int |
getWeakPower(Block block,
Direction face) |
boolean |
isAttached(BlockState state) |
boolean |
isPowered(BlockState state) |
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, isSolidgetColor, isTransparentaddVelocityToEntity, canBeActivated, canBeBrokenWith, canBeClimbed, canBePlaced, canBePushed, canBeReplaced, canHarvestWithHand, canSilkTouch, clone, collidesWithBB, collidesWithBB, 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, tickRatepublic int onUpdate(Block block, int type)
onUpdate in class BlockBehaviorpublic 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 void calculateState(Block block, boolean onBreak, boolean updateAround, int pos, BlockState blockState)
public boolean isAttached(BlockState state)
public boolean isPowered(BlockState state)
public boolean isPowerSource(Block block)
isPowerSource in class BlockBehaviorpublic int getWeakPower(Block block, Direction face)
getWeakPower in class BlockBehaviorpublic int getStrongPower(Block block, Direction side)
getStrongPower in class BlockBehaviorpublic Item toItem(Block block)
toItem in class BlockBehaviorpublic boolean canWaterlogSource()
canWaterlogSource in class BlockBehaviorpublic boolean canWaterlogFlowing()
canWaterlogFlowing in class BlockBehaviorCopyright © 2020. All rights reserved.