Class BlockBehaviorCocoa

java.lang.Object
org.cloudburstmc.api.block.behavior.BlockBehavior

public class BlockBehaviorCocoa extends BlockBehaviorTransparent
Created by CreeperFace on 27. 10. 2016.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static org.cloudburstmc.api.util.AxisAlignedBB[]
     
    protected static org.cloudburstmc.api.util.AxisAlignedBB[]
     
    protected static org.cloudburstmc.api.util.AxisAlignedBB[]
     
    protected static org.cloudburstmc.api.util.AxisAlignedBB[]
     
    protected static org.cloudburstmc.api.util.AxisAlignedBB[]
     
    static int
     
    static int
     
    static int
     
    static int
     
    static int
     
    static int
     
    static int
     
    static int
     
    static int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canBeActivated​(org.cloudburstmc.api.block.Block block)
     
    org.cloudburstmc.api.item.ItemStack[]
    getDrops​(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.item.ItemStack hand)
     
    boolean
    grow​(org.cloudburstmc.api.block.Block block)
     
    boolean
    onActivate​(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.item.ItemStack item, org.cloudburstmc.api.player.Player player)
     
    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, 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, getStrongPower, getToolType, getWeakPower, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, isPowerSource, isSolid, isTransparent, onActivate, onBreak, 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
  • Field Details

    • BB_NORTH

      protected static final org.cloudburstmc.api.util.AxisAlignedBB[] BB_NORTH
    • BB_EAST

      protected static final org.cloudburstmc.api.util.AxisAlignedBB[] BB_EAST
    • BB_SOUTH

      protected static final org.cloudburstmc.api.util.AxisAlignedBB[] BB_SOUTH
    • BB_WEST

      protected static final org.cloudburstmc.api.util.AxisAlignedBB[] BB_WEST
    • BB_ALL

      protected static final org.cloudburstmc.api.util.AxisAlignedBB[] BB_ALL
    • NORTH

      public static final int NORTH
      See Also:
      Constant Field Values
    • EAST

      public static final int EAST
      See Also:
      Constant Field Values
    • SOUTH

      public static final int SOUTH
      See Also:
      Constant Field Values
    • WEST

      public static final int WEST
      See Also:
      Constant Field Values
    • DIR_MASK

      public static final int DIR_MASK
      See Also:
      Constant Field Values
    • STAGE_1

      public static final int STAGE_1
      See Also:
      Constant Field Values
    • STAGE_2

      public static final int STAGE_2
      See Also:
      Constant Field Values
    • STAGE_3

      public static final int STAGE_3
      See Also:
      Constant Field Values
    • STAGE_MASK

      public static final int STAGE_MASK
      See Also:
      Constant Field Values
  • Constructor Details

    • BlockBehaviorCocoa

      public BlockBehaviorCocoa()
  • Method Details

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

      public int onUpdate(org.cloudburstmc.api.block.Block block, int type)
      Overrides:
      onUpdate in class org.cloudburstmc.api.block.behavior.BlockBehavior
    • canBeActivated

      public boolean canBeActivated(org.cloudburstmc.api.block.Block block)
      Overrides:
      canBeActivated in class org.cloudburstmc.api.block.behavior.BlockBehavior
    • onActivate

      public boolean onActivate(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.item.ItemStack item, org.cloudburstmc.api.player.Player player)
      Overrides:
      onActivate in class org.cloudburstmc.api.block.behavior.BlockBehavior
    • grow

      public boolean grow(org.cloudburstmc.api.block.Block block)
    • toItem

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

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