public abstract class BlockBehaviorPressurePlateBase extends FloodableBlockBehavior
| Modifier and Type | Field and Description |
|---|---|
protected float |
offPitch |
protected float |
onPitch |
| Constructor and Description |
|---|
BlockBehaviorPressurePlateBase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHarvestWithHand() |
boolean |
canPassThrough() |
boolean |
canWaterlogSource() |
protected abstract int |
computeRedstoneStrength(Block block) |
int |
getRedstonePower(BlockState state) |
int |
getStrongPower(Block block,
Direction side) |
int |
getWeakPower(Block block,
Direction side) |
boolean |
isPowerSource(Block block) |
boolean |
onBreak(Block block,
Item item) |
void |
onEntityCollide(Block block,
Entity entity) |
int |
onUpdate(Block block,
int type) |
boolean |
place(Item item,
Block block,
Block target,
Direction face,
com.nukkitx.math.vector.Vector3f clickPos,
Player player) |
protected void |
playOffSound(Block block) |
protected void |
playOnSound(Block block) |
Item |
toItem(Block block) |
protected void |
updateState(Block block,
int oldStrength) |
canBeFlooded, getBoundingBox, getHardness, getResistance, isSolidgetColor, isTransparentaddVelocityToEntity, canBeActivated, canBeBrokenWith, canBeClimbed, canBePlaced, canBePushed, canBeReplaced, canSilkTouch, canWaterlogFlowing, clone, collidesWithBB, collidesWithBB, getBoundingBox, getBreakTime, getBreakTime, getBurnAbility, getBurnChance, getCollisionBoxes, getComparatorInputOverride, getDescriptionId, getDropExp, getDrops, getFilterLevel, getFrictionFactor, getLightLevel, getSaveId, getToolType, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, onActivate, onActivate, onBreak, placeBlock, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRatepublic boolean canPassThrough()
canPassThrough in class FloodableBlockBehaviorpublic boolean canHarvestWithHand()
canHarvestWithHand in class BlockBehaviorpublic boolean isPowerSource(Block block)
isPowerSource in class BlockBehaviorpublic int onUpdate(Block block, int type)
onUpdate 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 void onEntityCollide(Block block, Entity entity)
onEntityCollide in class BlockBehaviorprotected void updateState(Block block, int oldStrength)
public boolean onBreak(Block block, Item item)
onBreak in class BlockBehaviorpublic int getWeakPower(Block block, Direction side)
getWeakPower in class BlockBehaviorpublic int getStrongPower(Block block, Direction side)
getStrongPower in class BlockBehaviorpublic int getRedstonePower(BlockState state)
protected void playOnSound(Block block)
protected void playOffSound(Block block)
protected abstract int computeRedstoneStrength(Block block)
public Item toItem(Block block)
toItem in class BlockBehaviorpublic boolean canWaterlogSource()
canWaterlogSource in class BlockBehaviorCopyright © 2020. All rights reserved.