public class BlockBehaviorDelegate extends BaseBlockBehavior
| Constructor and Description |
|---|
BlockBehaviorDelegate(org.cloudburstmc.api.block.behavior.BlockBehavior parent) |
| Modifier and Type | Method and Description |
|---|---|
com.nukkitx.math.vector.Vector3f |
addVelocityToEntity(org.cloudburstmc.api.block.Block block,
com.nukkitx.math.vector.Vector3f vector,
org.cloudburstmc.api.entity.Entity entity) |
boolean |
canBeActivated(org.cloudburstmc.api.block.Block block) |
boolean |
canBeBrokenWith(org.cloudburstmc.api.block.BlockState state,
org.cloudburstmc.api.item.ItemStack item) |
boolean |
canBeClimbed() |
boolean |
canBeFlooded(org.cloudburstmc.api.block.BlockState state) |
boolean |
canBePlaced() |
boolean |
canBePushed() |
boolean |
canBeReplaced(org.cloudburstmc.api.block.Block block) |
boolean |
canHarvestWithHand(org.cloudburstmc.api.block.BlockState state) |
boolean |
canPassThrough(org.cloudburstmc.api.block.BlockState state) |
boolean |
canSilkTouch(org.cloudburstmc.api.block.BlockState state) |
boolean |
canWaterlogFlowing(org.cloudburstmc.api.block.BlockState state) |
boolean |
canWaterlogSource(org.cloudburstmc.api.block.BlockState state) |
org.cloudburstmc.api.block.behavior.BlockBehavior |
clone() |
boolean |
collidesWithBB(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.util.AxisAlignedBB bb) |
boolean |
collidesWithBB(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.util.AxisAlignedBB bb,
boolean collisionBB) |
float |
getBreakTime(org.cloudburstmc.api.block.BlockState state,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.player.Player player) |
int |
getBurnAbility(org.cloudburstmc.api.block.BlockState state) |
int |
getBurnChance(org.cloudburstmc.api.block.BlockState state) |
org.cloudburstmc.api.util.AxisAlignedBB |
getCollisionBoxes(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.block.BlockState state) |
org.cloudburstmc.api.util.data.BlockColor |
getColor(org.cloudburstmc.api.block.Block block) |
int |
getComparatorInputOverride(org.cloudburstmc.api.block.Block block) |
String |
getDescriptionId(org.cloudburstmc.api.block.BlockState state) |
int |
getDropExp() |
org.cloudburstmc.api.item.ItemStack[] |
getDrops(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.item.ItemStack hand) |
int |
getFilterLevel(org.cloudburstmc.api.block.BlockState state) |
float |
getFrictionFactor(org.cloudburstmc.api.block.BlockState blockState) |
float |
getHardness(org.cloudburstmc.api.block.BlockState blockState) |
int |
getLightLevel(org.cloudburstmc.api.block.Block block) |
org.cloudburstmc.api.block.behavior.BlockBehavior |
getParent() |
float |
getResistance(org.cloudburstmc.api.block.BlockState blockState) |
String |
getSaveId() |
int |
getStrongPower(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.util.Direction side) |
org.cloudburstmc.api.item.ToolType |
getToolType(org.cloudburstmc.api.block.BlockState state) |
int |
getWeakPower(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.util.Direction face) |
boolean |
hasComparatorInputOverride(org.cloudburstmc.api.block.BlockState state) |
boolean |
hasEntityCollision() |
boolean |
isBreakable(org.cloudburstmc.api.block.BlockState state,
org.cloudburstmc.api.item.ItemStack item) |
boolean |
isLiquid() |
boolean |
isNormalBlock(org.cloudburstmc.api.block.Block block) |
boolean |
isPowerSource(org.cloudburstmc.api.block.Block block) |
boolean |
isSolid(org.cloudburstmc.api.block.BlockState state) |
boolean |
isTransparent(org.cloudburstmc.api.block.BlockState state) |
boolean |
onActivate(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.item.ItemStack item) |
boolean |
onActivate(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.player.Player player) |
boolean |
onBreak(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.item.ItemStack item) |
boolean |
onBreak(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.player.Player player) |
void |
onEntityCollide(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.entity.Entity entity) |
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) |
boolean |
placeBlock(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.block.BlockState newState) |
boolean |
placeBlock(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.block.BlockState newState,
boolean update) |
boolean |
placeBlock(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.item.ItemStack item) |
boolean |
placeBlock(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.item.ItemStack item,
boolean update) |
int |
tickRate() |
org.cloudburstmc.api.item.ItemStack |
toItem(org.cloudburstmc.api.block.Block block) |
public BlockBehaviorDelegate(@Nonnull org.cloudburstmc.api.block.behavior.BlockBehavior parent)
public org.cloudburstmc.api.block.behavior.BlockBehavior getParent()
public boolean canHarvestWithHand(org.cloudburstmc.api.block.BlockState state)
canHarvestWithHand in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean isBreakable(org.cloudburstmc.api.block.BlockState state,
org.cloudburstmc.api.item.ItemStack item)
isBreakable in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic int tickRate()
tickRate in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic int onUpdate(org.cloudburstmc.api.block.Block block,
int type)
onUpdate in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean onActivate(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.item.ItemStack item)
onActivate in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean onActivate(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.player.Player player)
onActivate in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic int getBurnChance(org.cloudburstmc.api.block.BlockState state)
getBurnChance in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic int getBurnAbility(org.cloudburstmc.api.block.BlockState state)
getBurnAbility in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic org.cloudburstmc.api.item.ToolType getToolType(org.cloudburstmc.api.block.BlockState state)
getToolType in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic int getLightLevel(org.cloudburstmc.api.block.Block block)
getLightLevel in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean canBePlaced()
canBePlaced in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean canBeReplaced(org.cloudburstmc.api.block.Block block)
canBeReplaced in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean isTransparent(org.cloudburstmc.api.block.BlockState state)
isTransparent in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean isSolid(org.cloudburstmc.api.block.BlockState state)
isSolid in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean isLiquid()
isLiquid in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic int getFilterLevel(org.cloudburstmc.api.block.BlockState state)
getFilterLevel in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean canBeActivated(org.cloudburstmc.api.block.Block block)
canBeActivated in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean hasEntityCollision()
hasEntityCollision in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean canPassThrough(org.cloudburstmc.api.block.BlockState state)
canPassThrough in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean canBePushed()
canBePushed in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean hasComparatorInputOverride(org.cloudburstmc.api.block.BlockState state)
hasComparatorInputOverride in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic int getComparatorInputOverride(org.cloudburstmc.api.block.Block block)
getComparatorInputOverride in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean canBeClimbed()
canBeClimbed in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic org.cloudburstmc.api.util.data.BlockColor getColor(org.cloudburstmc.api.block.Block block)
getColor in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean canBeFlooded(org.cloudburstmc.api.block.BlockState state)
canBeFlooded in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic 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)
place in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean placeBlock(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.item.ItemStack item)
placeBlock in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean placeBlock(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.item.ItemStack item,
boolean update)
placeBlock in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean placeBlock(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.block.BlockState newState)
placeBlock in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean placeBlock(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.block.BlockState newState,
boolean update)
placeBlock in class BaseBlockBehaviorpublic boolean onBreak(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.item.ItemStack item)
onBreak in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean onBreak(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.player.Player player)
onBreak in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic float getHardness(org.cloudburstmc.api.block.BlockState blockState)
getHardness in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic String getDescriptionId(org.cloudburstmc.api.block.BlockState state)
getDescriptionId in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic float getResistance(org.cloudburstmc.api.block.BlockState blockState)
getResistance in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic float getFrictionFactor(org.cloudburstmc.api.block.BlockState blockState)
getFrictionFactor in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic com.nukkitx.math.vector.Vector3f addVelocityToEntity(org.cloudburstmc.api.block.Block block,
com.nukkitx.math.vector.Vector3f vector,
org.cloudburstmc.api.entity.Entity entity)
addVelocityToEntity in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic org.cloudburstmc.api.item.ItemStack[] getDrops(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.item.ItemStack hand)
getDrops in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic float getBreakTime(org.cloudburstmc.api.block.BlockState state,
org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.player.Player player)
getBreakTime in class BaseBlockBehaviorpublic boolean canBeBrokenWith(org.cloudburstmc.api.block.BlockState state,
org.cloudburstmc.api.item.ItemStack item)
canBeBrokenWith in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean collidesWithBB(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.util.AxisAlignedBB bb)
collidesWithBB in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean collidesWithBB(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.util.AxisAlignedBB bb,
boolean collisionBB)
collidesWithBB in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic void onEntityCollide(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.entity.Entity entity)
onEntityCollide in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic org.cloudburstmc.api.util.AxisAlignedBB getCollisionBoxes(com.nukkitx.math.vector.Vector3i pos,
org.cloudburstmc.api.block.BlockState state)
getCollisionBoxes in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic String getSaveId()
getSaveId in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic int getWeakPower(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.util.Direction face)
getWeakPower in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic int getStrongPower(org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.util.Direction side)
getStrongPower in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean isPowerSource(org.cloudburstmc.api.block.Block block)
isPowerSource in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic int getDropExp()
getDropExp in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean isNormalBlock(org.cloudburstmc.api.block.Block block)
isNormalBlock in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic org.cloudburstmc.api.block.behavior.BlockBehavior clone()
clone in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic org.cloudburstmc.api.item.ItemStack toItem(org.cloudburstmc.api.block.Block block)
toItem in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean canSilkTouch(org.cloudburstmc.api.block.BlockState state)
canSilkTouch in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean canWaterlogSource(org.cloudburstmc.api.block.BlockState state)
canWaterlogSource in class org.cloudburstmc.api.block.behavior.BlockBehaviorpublic boolean canWaterlogFlowing(org.cloudburstmc.api.block.BlockState state)
canWaterlogFlowing in class org.cloudburstmc.api.block.behavior.BlockBehaviorCopyright © 2021. All rights reserved.