public class BlockBehaviorTrapdoor extends BlockBehaviorTransparent
| Modifier and Type | Field and Description |
|---|---|
protected BlockColor |
blockColor |
static int |
TRAPDOOR_OPEN_BIT |
static int |
TRAPDOOR_TOP_BIT |
| Constructor and Description |
|---|
BlockBehaviorTrapdoor() |
BlockBehaviorTrapdoor(BlockColor blockColor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeActivated(Block block) |
boolean |
canWaterlogSource() |
BlockColor |
getColor(Block block) |
float |
getHardness() |
float |
getResistance() |
int |
getToolType() |
boolean |
isOpen(BlockState state) |
boolean |
isTop(BlockState state) |
boolean |
onActivate(Block block,
Item item,
Player player) |
int |
onUpdate(Block block,
int type) |
boolean |
place(Item item,
Block block,
Block target,
Direction face,
com.nukkitx.math.vector.Vector3f clickPos,
Player player) |
boolean |
toggle(Block block,
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, getWeakPower, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, isPowerSource, isSolid, onActivate, onBreak, onBreak, onEntityCollide, placeBlock, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRatepublic static final int TRAPDOOR_OPEN_BIT
public static final int TRAPDOOR_TOP_BIT
protected BlockColor blockColor
public BlockBehaviorTrapdoor()
public BlockBehaviorTrapdoor(BlockColor blockColor)
public float getHardness()
getHardness in class BlockBehaviorpublic boolean canBeActivated(Block block)
canBeActivated in class BlockBehaviorpublic int getToolType()
getToolType in class BlockBehaviorpublic float getResistance()
getResistance in class BlockBehaviorpublic int onUpdate(Block block, int type)
onUpdate in class BlockBehaviorpublic Item toItem(Block block)
toItem 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 isOpen(BlockState state)
public boolean isTop(BlockState state)
public BlockColor getColor(Block block)
getColor in class BlockBehaviorTransparentpublic boolean canWaterlogSource()
canWaterlogSource in class BlockBehaviorCopyright © 2020. All rights reserved.