public class BlockBehaviorLeaves extends BlockBehaviorTransparent
| Constructor and Description |
|---|
BlockBehaviorLeaves() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canDropApple(BlockState state) |
boolean |
canSilkTouch() |
boolean |
canWaterlogSource() |
int |
getBurnAbility() |
int |
getBurnChance() |
BlockColor |
getColor(Block block) |
Item[] |
getDrops(Block block,
Item hand) |
float |
getHardness() |
protected Item |
getSapling(BlockState state) |
int |
getToolType() |
boolean |
isCheckDecay(BlockState state) |
boolean |
isPersistent(BlockState state) |
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) |
isTransparentaddVelocityToEntity, canBeActivated, canBeBrokenWith, canBeClimbed, canBeFlooded, canBePlaced, canBePushed, canBeReplaced, canHarvestWithHand, canPassThrough, canWaterlogFlowing, clone, collidesWithBB, collidesWithBB, getBoundingBox, getBoundingBox, getBreakTime, getBreakTime, getCollisionBoxes, getComparatorInputOverride, getDescriptionId, getDropExp, getFilterLevel, getFrictionFactor, getLightLevel, getResistance, getSaveId, getStrongPower, getWeakPower, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, isPowerSource, isSolid, onActivate, onActivate, onBreak, onBreak, onEntityCollide, placeBlock, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRatepublic float getHardness()
getHardness in class BlockBehaviorpublic int getToolType()
getToolType in class BlockBehaviorpublic int getBurnChance()
getBurnChance in class BlockBehaviorpublic int getBurnAbility()
getBurnAbility 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 Item toItem(Block block)
toItem in class BlockBehaviorpublic Item[] getDrops(Block block, Item hand)
getDrops in class BlockBehaviorpublic int onUpdate(Block block, int type)
onUpdate in class BlockBehaviorpublic boolean isCheckDecay(BlockState state)
public boolean isPersistent(BlockState state)
public BlockColor getColor(Block block)
getColor in class BlockBehaviorTransparentpublic boolean canSilkTouch()
canSilkTouch in class BlockBehaviorprotected boolean canDropApple(BlockState state)
protected Item getSapling(BlockState state)
public boolean canWaterlogSource()
canWaterlogSource in class BlockBehaviorCopyright © 2020. All rights reserved.