Class BlockBehaviorCocoa
java.lang.Object
org.cloudburstmc.api.block.behavior.BlockBehavior
org.cloudburstmc.server.block.behavior.BaseBlockBehavior
org.cloudburstmc.server.block.behavior.BlockBehaviorTransparent
org.cloudburstmc.server.block.behavior.BlockBehaviorCocoa
Created by CreeperFace on 27. 10. 2016.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected 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 intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBeActivated(org.cloudburstmc.api.block.Block block)org.cloudburstmc.api.item.ItemStack[]getDrops(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.item.ItemStack hand)booleangrow(org.cloudburstmc.api.block.Block block)booleanonActivate(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.item.ItemStack item, org.cloudburstmc.api.player.Player player)intonUpdate(org.cloudburstmc.api.block.Block block, int type)booleanplace(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.ItemStacktoItem(org.cloudburstmc.api.block.Block block)Methods inherited from class org.cloudburstmc.server.block.behavior.BlockBehaviorTransparent
getColorMethods inherited from class org.cloudburstmc.server.block.behavior.BaseBlockBehavior
getBreakTime, placeBlockMethods 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
-
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:
placein classorg.cloudburstmc.api.block.behavior.BlockBehavior
-
onUpdate
public int onUpdate(org.cloudburstmc.api.block.Block block, int type)- Overrides:
onUpdatein classorg.cloudburstmc.api.block.behavior.BlockBehavior
-
canBeActivated
public boolean canBeActivated(org.cloudburstmc.api.block.Block block)- Overrides:
canBeActivatedin classorg.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:
onActivatein classorg.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:
toItemin classorg.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:
getDropsin classorg.cloudburstmc.api.block.behavior.BlockBehavior
-