public class BlockBehaviorRedstoneComparator extends BlockBehaviorRedstoneDiode
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockBehaviorRedstoneComparator.Mode |
isPowered, type| Constructor and Description |
|---|
BlockBehaviorRedstoneComparator(Identifier type) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calculateInputStrength(Block block) |
BlockColor |
getColor(Block block) |
protected int |
getDelay(BlockState state) |
BlockBehaviorRedstoneComparator.Mode |
getMode(BlockState state) |
protected BlockState |
getPowered(BlockState state) |
protected int |
getRedstoneSignal(Block block) |
protected BlockState |
getUnpowered(BlockState state) |
boolean |
isPowered(BlockState state) |
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) |
protected boolean |
shouldBePowered(Block block) |
Item |
toItem(Block block) |
void |
updateState(Block block) |
canBeActivated, canPassThrough, canWaterlogFlowing, canWaterlogSource, getFacing, getPowerOnSide, getPowerOnSides, getStrongPower, getWeakPower, isAlternateInput, isDiode, isFacingTowardsRepeater, isLocked, isPowerSource, onBreakcanBeFlooded, getBoundingBox, getHardness, getResistance, isSolidisTransparentaddVelocityToEntity, canBeBrokenWith, canBeClimbed, canBePlaced, canBePushed, canBeReplaced, canHarvestWithHand, canSilkTouch, clone, collidesWithBB, collidesWithBB, getBreakTime, getBreakTime, getBurnAbility, getBurnChance, getCollisionBoxes, getComparatorInputOverride, getDescriptionId, getDropExp, getDrops, getFilterLevel, getFrictionFactor, getLightLevel, getSaveId, getToolType, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, onActivate, onBreak, onEntityCollide, placeBlock, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRatepublic BlockBehaviorRedstoneComparator(Identifier type)
protected int getDelay(BlockState state)
getDelay in class BlockBehaviorRedstoneDiodepublic BlockBehaviorRedstoneComparator.Mode getMode(BlockState state)
protected BlockState getUnpowered(BlockState state)
getUnpowered in class BlockBehaviorRedstoneDiodeprotected BlockState getPowered(BlockState state)
getPowered in class BlockBehaviorRedstoneDiodeprotected int getRedstoneSignal(Block block)
getRedstoneSignal in class BlockBehaviorRedstoneDiodepublic void updateState(Block block)
updateState in class BlockBehaviorRedstoneDiodeprotected int calculateInputStrength(Block block)
calculateInputStrength in class BlockBehaviorRedstoneDiodeprotected boolean shouldBePowered(Block block)
shouldBePowered in class BlockBehaviorRedstoneDiodepublic boolean onActivate(Block block, Item item, Player player)
onActivate in class BlockBehaviorpublic int onUpdate(Block block, int type)
onUpdate in class BlockBehaviorRedstoneDiodepublic boolean place(Item item, Block block, Block target, Direction face, com.nukkitx.math.vector.Vector3f clickPos, Player player)
place in class BlockBehaviorRedstoneDiodepublic boolean isPowered(BlockState state)
isPowered in class BlockBehaviorRedstoneDiodepublic Item toItem(Block block)
toItem in class BlockBehaviorpublic BlockColor getColor(Block block)
getColor in class BlockBehaviorRedstoneDiodeCopyright © 2020. All rights reserved.