Class BlockBehaviorRailDetector


public class BlockBehaviorRailDetector extends BlockBehaviorRail
  • Field Summary

    Fields inherited from class org.cloudburstmc.server.block.behavior.BlockBehaviorRail

    canBePowered, directionTrait, type
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.cloudburstmc.api.item.ItemStack[]
    getDrops​(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.item.ItemStack hand)
     
    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)
     
    void
    onEntityCollide​(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.entity.Entity entity)
     
    int
    onUpdate​(org.cloudburstmc.api.block.Block block, int type)
     
    protected void
    updateState​(org.cloudburstmc.api.block.Block block)
     

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

    canPowered, checkRailsConnected, getColor, getOrientation, isAbstract, isActive, place, setActive, setOrientation, 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, getFilterLevel, getFrictionFactor, getHardness, getLightLevel, getMinimalTier, getResistance, getSaveId, getToolType, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, isPowerSource, isSolid, isTransparent, onActivate, onActivate, onBreak, onBreak, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRate

    Methods inherited from class java.lang.Object

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

    • BlockBehaviorRailDetector

      public BlockBehaviorRailDetector()
  • Method Details

    • 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
    • onUpdate

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

      public void onEntityCollide(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.entity.Entity entity)
      Overrides:
      onEntityCollide in class org.cloudburstmc.api.block.behavior.BlockBehavior
    • updateState

      protected void updateState(org.cloudburstmc.api.block.Block block)
    • getDrops

      public org.cloudburstmc.api.item.ItemStack[] getDrops(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.item.ItemStack hand)
      Overrides:
      getDrops in class BlockBehaviorRail