public class BlockBehaviorButton extends FloodableBlockBehavior
| Modifier and Type | Field and Description |
|---|---|
protected Identifier |
type |
| Constructor and Description |
|---|
BlockBehaviorButton(Identifier type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeActivated(Block block) |
boolean |
canWaterlogSource() |
Direction |
getFacing(Block block) |
float |
getHardness() |
float |
getResistance() |
int |
getStrongPower(Block block,
Direction side) |
int |
getWeakPower(Block block,
Direction side) |
boolean |
isActivated(Block block) |
boolean |
isPowerSource(Block block) |
boolean |
onActivate(Block block,
Item item,
Player player) |
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, isSolidgetColor, isTransparentaddVelocityToEntity, canBeBrokenWith, canBeClimbed, canBePlaced, canBePushed, canBeReplaced, canHarvestWithHand, canSilkTouch, canWaterlogFlowing, clone, collidesWithBB, collidesWithBB, getBoundingBox, getBreakTime, getBreakTime, getBurnAbility, getBurnChance, getCollisionBoxes, getComparatorInputOverride, getDescriptionId, getDropExp, getDrops, getFilterLevel, getFrictionFactor, getLightLevel, getSaveId, getToolType, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, onActivate, onBreak, onEntityCollide, placeBlock, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRateprotected final Identifier type
public BlockBehaviorButton(Identifier type)
public float getResistance()
getResistance in class FloodableBlockBehaviorpublic float getHardness()
getHardness in class FloodableBlockBehaviorpublic boolean place(Item item, Block block, Block target, Direction face, com.nukkitx.math.vector.Vector3f clickPos, Player player)
place in class BlockBehaviorpublic boolean canBeActivated(Block block)
canBeActivated in class BlockBehaviorpublic boolean onActivate(Block block, Item item, Player player)
onActivate in class BlockBehaviorpublic int onUpdate(Block block, int type)
onUpdate in class BlockBehaviorpublic boolean isActivated(Block block)
public 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 boolean onBreak(Block block, Item item)
onBreak in class BlockBehaviorpublic Item toItem(Block block)
toItem in class BlockBehaviorpublic boolean canWaterlogSource()
canWaterlogSource in class BlockBehaviorCopyright © 2020. All rights reserved.