Class BlockBehaviorRedstoneTorch


public class BlockBehaviorRedstoneTorch extends BlockBehaviorTorch
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    checkState​(org.cloudburstmc.api.block.Block block)
     
    org.cloudburstmc.api.util.data.BlockColor
    getColor​(org.cloudburstmc.api.block.Block block)
     
    int
    getLightLevel​(org.cloudburstmc.api.block.Block block)
     
    int
    getStrongPower​(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.util.Direction side)
     
    int
    getWeakPower​(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.util.Direction side)
     
    protected boolean
    isPoweredFromSide​(org.cloudburstmc.api.block.Block block)
     
    boolean
    onBreak​(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.item.ItemStack item)
     
    int
    onUpdate​(org.cloudburstmc.api.block.Block block, int type)
     
    boolean
    place​(org.cloudburstmc.api.item.ItemStack item, org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.block.Block target, org.cloudburstmc.api.util.Direction face, com.nukkitx.math.vector.Vector3f clickPos, org.cloudburstmc.api.player.Player player)
     
    int
     

    Methods inherited from class org.cloudburstmc.server.block.behavior.BlockBehaviorTorch

    getBlockFace, getBlockFace, toItem

    Methods inherited from class org.cloudburstmc.server.block.behavior.BaseBlockBehavior

    getBreakTime, placeBlock

    Methods inherited from class org.cloudburstmc.api.block.behavior.BlockBehavior

    addVelocityToEntity, canBeActivated, canBeBrokenWith, canBeClimbed, canBeFlooded, canBePlaced, canBePushed, canBeReplaced, canHarvestWithHand, canPassThrough, canSilkTouch, canWaterlogFlowing, canWaterlogSource, checkTool, clone, collidesWithBB, collidesWithBB, getBoundingBox, getBoundingBox, getBoundingBox, getBurnAbility, getBurnChance, getCollisionBoxes, getCollisionBoxes, getComparatorInputOverride, getDescriptionId, getDropExp, getDrops, getFilterLevel, getFrictionFactor, getHardness, getMinimalTier, getResistance, getSaveId, getToolType, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, isPowerSource, isSolid, isTransparent, onActivate, onActivate, onBreak, onEntityCollide, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BlockBehaviorRedstoneTorch

      public BlockBehaviorRedstoneTorch()
  • Method Details

    • getLightLevel

      public int getLightLevel(org.cloudburstmc.api.block.Block block)
      Overrides:
      getLightLevel in class BlockBehaviorTorch
    • place

      public boolean place(org.cloudburstmc.api.item.ItemStack item, org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.block.Block target, org.cloudburstmc.api.util.Direction face, com.nukkitx.math.vector.Vector3f clickPos, org.cloudburstmc.api.player.Player player)
      Overrides:
      place in class BlockBehaviorTorch
    • getWeakPower

      public int getWeakPower(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.util.Direction side)
      Overrides:
      getWeakPower in class org.cloudburstmc.api.block.behavior.BlockBehavior
    • getStrongPower

      public int getStrongPower(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.util.Direction side)
      Overrides:
      getStrongPower in class org.cloudburstmc.api.block.behavior.BlockBehavior
    • onBreak

      public boolean onBreak(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.item.ItemStack item)
      Overrides:
      onBreak in class org.cloudburstmc.api.block.behavior.BlockBehavior
    • onUpdate

      public int onUpdate(org.cloudburstmc.api.block.Block block, int type)
      Overrides:
      onUpdate in class BlockBehaviorTorch
    • checkState

      protected boolean checkState(org.cloudburstmc.api.block.Block block)
    • isPoweredFromSide

      protected boolean isPoweredFromSide(org.cloudburstmc.api.block.Block block)
    • tickRate

      public int tickRate()
      Overrides:
      tickRate in class org.cloudburstmc.api.block.behavior.BlockBehavior
    • getColor

      public org.cloudburstmc.api.util.data.BlockColor getColor(org.cloudburstmc.api.block.Block block)
      Overrides:
      getColor in class BlockBehaviorTorch