public class BlockBehaviorCocoa extends BlockBehaviorTransparent
| Modifier and Type | Field and Description |
|---|---|
protected static AxisAlignedBB[] |
BB_ALL |
protected static AxisAlignedBB[] |
BB_EAST |
protected static AxisAlignedBB[] |
BB_NORTH |
protected static AxisAlignedBB[] |
BB_SOUTH |
protected static AxisAlignedBB[] |
BB_WEST |
static int |
DIR_MASK |
static int |
EAST |
static int |
NORTH |
static int |
SOUTH |
static int |
STAGE_1 |
static int |
STAGE_2 |
static int |
STAGE_3 |
static int |
STAGE_MASK |
static int |
WEST |
| Constructor and Description |
|---|
BlockBehaviorCocoa() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeActivated(Block block) |
boolean |
canWaterlogFlowing() |
boolean |
canWaterlogSource() |
Item[] |
getDrops(Block block,
Item hand) |
float |
getHardness() |
float |
getResistance() |
int |
getToolType() |
boolean |
grow(Block block) |
boolean |
onActivate(Block block,
Item item,
Player player) |
int |
onUpdate(Block block,
int type) |
boolean |
place(Item item,
Block block,
Block target,
Direction face,
com.nukkitx.math.vector.Vector3f clickPos,
Player player) |
Item |
toItem(Block block) |
getColor, isTransparentaddVelocityToEntity, canBeBrokenWith, canBeClimbed, canBeFlooded, canBePlaced, canBePushed, canBeReplaced, canHarvestWithHand, canPassThrough, canSilkTouch, clone, collidesWithBB, collidesWithBB, getBoundingBox, getBreakTime, getBreakTime, getBurnAbility, getBurnChance, getCollisionBoxes, getComparatorInputOverride, getDescriptionId, getDropExp, getFilterLevel, getFrictionFactor, getLightLevel, getSaveId, getStrongPower, getWeakPower, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, isPowerSource, isSolid, onActivate, onBreak, onBreak, onEntityCollide, placeBlock, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRateprotected static final AxisAlignedBB[] BB_NORTH
protected static final AxisAlignedBB[] BB_EAST
protected static final AxisAlignedBB[] BB_SOUTH
protected static final AxisAlignedBB[] BB_WEST
protected static final AxisAlignedBB[] BB_ALL
public static final int NORTH
public static final int EAST
public static final int SOUTH
public static final int WEST
public static final int DIR_MASK
public static final int STAGE_1
public static final int STAGE_2
public static final int STAGE_3
public static final int STAGE_MASK
public boolean place(Item item, Block block, Block target, Direction face, com.nukkitx.math.vector.Vector3f clickPos, Player player)
place in class BlockBehaviorpublic int onUpdate(Block block, int type)
onUpdate in class BlockBehaviorpublic boolean canBeActivated(Block block)
canBeActivated in class BlockBehaviorpublic boolean onActivate(Block block, Item item, Player player)
onActivate in class BlockBehaviorpublic boolean grow(Block block)
public float getResistance()
getResistance in class BlockBehaviorpublic float getHardness()
getHardness in class BlockBehaviorpublic int getToolType()
getToolType in class BlockBehaviorpublic Item toItem(Block block)
toItem in class BlockBehaviorpublic Item[] getDrops(Block block, Item hand)
getDrops in class BlockBehaviorpublic boolean canWaterlogSource()
canWaterlogSource in class BlockBehaviorpublic boolean canWaterlogFlowing()
canWaterlogFlowing in class BlockBehaviorCopyright © 2020. All rights reserved.