public class BlockBehaviorBed extends BlockBehaviorTransparent
| Constructor and Description |
|---|
BlockBehaviorBed() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeActivated(Block block) |
boolean |
canWaterlogSource() |
BlockColor |
getColor(Block block) |
DyeColor |
getDyeColor(Block block) |
float |
getHardness() |
float |
getResistance() |
boolean |
onActivate(Block block,
Item item,
Player player) |
boolean |
onBreak(Block block,
Item item) |
boolean |
place(Item item,
Block block,
Block target,
Direction face,
com.nukkitx.math.vector.Vector3f clickPos,
Player player) |
Item |
toItem(Block block) |
isTransparentaddVelocityToEntity, canBeBrokenWith, canBeClimbed, canBeFlooded, canBePlaced, canBePushed, canBeReplaced, canHarvestWithHand, canPassThrough, canSilkTouch, canWaterlogFlowing, clone, collidesWithBB, collidesWithBB, getBoundingBox, getBoundingBox, getBreakTime, getBreakTime, getBurnAbility, getBurnChance, getCollisionBoxes, getComparatorInputOverride, getDescriptionId, getDropExp, getDrops, getFilterLevel, getFrictionFactor, getLightLevel, getSaveId, getStrongPower, getToolType, getWeakPower, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, isPowerSource, isSolid, onActivate, onBreak, onEntityCollide, onUpdate, placeBlock, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRatepublic boolean canBeActivated(Block block)
canBeActivated in class BlockBehaviorpublic float getResistance()
getResistance in class BlockBehaviorpublic float getHardness()
getHardness in class BlockBehaviorpublic boolean onActivate(Block block, Item item, Player player)
onActivate 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 Item toItem(Block block)
toItem in class BlockBehaviorpublic BlockColor getColor(Block block)
getColor in class BlockBehaviorTransparentpublic boolean canWaterlogSource()
canWaterlogSource in class BlockBehaviorCopyright © 2020. All rights reserved.