public class BlockBehaviorLog extends BlockBehaviorSolid
| Modifier and Type | Field and Description |
|---|---|
protected Identifier |
identifier |
protected static Map<TreeSpecies,Identifier> |
STRIPPED_MAP |
| Constructor and Description |
|---|
BlockBehaviorLog() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeActivated(Block block) |
int |
getBurnAbility() |
int |
getBurnChance() |
BlockColor |
getColor(Block block) |
float |
getHardness() |
float |
getResistance() |
int |
getToolType() |
boolean |
onActivate(Block block,
Item item,
Player player) |
boolean |
place(Item item,
Block block,
Block target,
Direction face,
com.nukkitx.math.vector.Vector3f clickPos,
Player player) |
Item |
toItem(Block block) |
static void |
upgradeLegacyBlock(int[] blockState) |
isSolidaddVelocityToEntity, canBeBrokenWith, canBeClimbed, canBeFlooded, canBePlaced, canBePushed, canBeReplaced, canHarvestWithHand, canPassThrough, canSilkTouch, canWaterlogFlowing, canWaterlogSource, clone, collidesWithBB, collidesWithBB, getBoundingBox, getBreakTime, getBreakTime, getCollisionBoxes, getComparatorInputOverride, getDescriptionId, getDropExp, getDrops, getFilterLevel, getFrictionFactor, getLightLevel, getSaveId, getStrongPower, getWeakPower, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, isPowerSource, isTransparent, onActivate, onBreak, onBreak, onEntityCollide, onUpdate, placeBlock, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRateprotected static final Map<TreeSpecies,Identifier> STRIPPED_MAP
protected Identifier identifier
public float getHardness()
getHardness in class BlockBehaviorpublic float getResistance()
getResistance in class BlockBehaviorpublic int getBurnChance()
getBurnChance in class BlockBehaviorpublic int getBurnAbility()
getBurnAbility in class BlockBehaviorpublic static void upgradeLegacyBlock(int[] blockState)
public boolean canBeActivated(Block block)
canBeActivated 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 int getToolType()
getToolType in class BlockBehaviorpublic BlockColor getColor(Block block)
getColor in class BlockBehaviorSolidpublic Item toItem(Block block)
toItem in class BlockBehaviorCopyright © 2020. All rights reserved.