Class BlockBehaviorTripWireHook


public class BlockBehaviorTripWireHook extends FloodableBlockBehavior
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    calculateState​(org.cloudburstmc.api.block.Block block, boolean onBreak, boolean updateAround, int pos, org.cloudburstmc.api.block.BlockState blockState)
     
    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 face)
     
    boolean
    isAttached​(org.cloudburstmc.api.block.BlockState state)
     
    boolean
    isPowered​(org.cloudburstmc.api.block.BlockState state)
     
    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)
     
    org.cloudburstmc.api.item.ItemStack
    toItem​(org.cloudburstmc.api.block.Block block)
     

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

    getColor

    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, getLightLevel, getMinimalTier, getResistance, getSaveId, getToolType, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, isPowerSource, isSolid, isTransparent, onActivate, onActivate, onBreak, onEntityCollide, 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

    • BlockBehaviorTripWireHook

      public BlockBehaviorTripWireHook()
  • Method Details

    • onUpdate

      public int onUpdate(org.cloudburstmc.api.block.Block block, int type)
      Overrides:
      onUpdate in class org.cloudburstmc.api.block.behavior.BlockBehavior
    • 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 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
    • calculateState

      public void calculateState(org.cloudburstmc.api.block.Block block, boolean onBreak, boolean updateAround, int pos, org.cloudburstmc.api.block.BlockState blockState)
    • isAttached

      public boolean isAttached(org.cloudburstmc.api.block.BlockState state)
    • isPowered

      public boolean isPowered(org.cloudburstmc.api.block.BlockState state)
    • getWeakPower

      public int getWeakPower(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.util.Direction face)
      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
    • toItem

      public org.cloudburstmc.api.item.ItemStack toItem(org.cloudburstmc.api.block.Block block)
      Overrides:
      toItem in class org.cloudburstmc.api.block.behavior.BlockBehavior