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