public class BlockBehaviorNoteblock extends BlockBehaviorSolid
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockBehaviorNoteblock.Instrument |
| Constructor and Description |
|---|
BlockBehaviorNoteblock() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeActivated(Block block) |
void |
emitSound(Block block) |
BlockColor |
getColor(Block state) |
float |
getHardness() |
BlockBehaviorNoteblock.Instrument |
getInstrument(Block block) |
float |
getResistance() |
int |
getStrength(Block block) |
int |
getToolType() |
void |
increaseStrength(Block block) |
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) |
isSolidaddVelocityToEntity, canBeBrokenWith, canBeClimbed, canBeFlooded, canBePlaced, canBePushed, canBeReplaced, canHarvestWithHand, canPassThrough, canSilkTouch, canWaterlogFlowing, canWaterlogSource, 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, isTransparent, onActivate, onBreak, onBreak, onEntityCollide, placeBlock, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRate, toItempublic int getToolType()
getToolType in class BlockBehaviorpublic float getHardness()
getHardness in class BlockBehaviorpublic float getResistance()
getResistance in class BlockBehaviorpublic boolean canBeActivated(Block block)
canBeActivated 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 getStrength(Block block)
public void increaseStrength(Block block)
public BlockBehaviorNoteblock.Instrument getInstrument(Block block)
public void emitSound(Block block)
public boolean onActivate(Block block, Item item, Player player)
onActivate in class BlockBehaviorpublic int onUpdate(Block block, int type)
onUpdate in class BlockBehaviorpublic BlockColor getColor(Block state)
getColor in class BlockBehaviorSolidCopyright © 2020. All rights reserved.