Class BlockBehaviorTorch
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.FloodableBlockBehavior
org.cloudburstmc.server.block.behavior.BlockBehaviorTorch
- Direct Known Subclasses:
BlockBehaviorRedstoneTorch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.cloudburstmc.api.util.DirectiongetBlockFace(int meta)org.cloudburstmc.api.util.DirectiongetBlockFace(org.cloudburstmc.api.block.BlockState state)org.cloudburstmc.api.util.data.BlockColorgetColor(org.cloudburstmc.api.block.Block block)intgetLightLevel(org.cloudburstmc.api.block.Block block)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.BaseBlockBehavior
getBreakTime, placeBlockMethods 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, getMinimalTier, getResistance, getSaveId, getStrongPower, getToolType, getWeakPower, hasComparatorInputOverride, hasEntityCollision, isBreakable, isLiquid, isNormalBlock, isPowerSource, isSolid, isTransparent, onActivate, onActivate, onBreak, onBreak, onEntityCollide, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock, tickRate
-
Constructor Details
-
BlockBehaviorTorch
public BlockBehaviorTorch()
-
-
Method Details
-
onUpdate
public int onUpdate(org.cloudburstmc.api.block.Block block, int type)- Overrides:
onUpdatein classorg.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:
placein classorg.cloudburstmc.api.block.behavior.BlockBehavior
-
getLightLevel
public int getLightLevel(org.cloudburstmc.api.block.Block block)- Overrides:
getLightLevelin classorg.cloudburstmc.api.block.behavior.BlockBehavior
-
toItem
public org.cloudburstmc.api.item.ItemStack toItem(org.cloudburstmc.api.block.Block block)- Overrides:
toItemin classorg.cloudburstmc.api.block.behavior.BlockBehavior
-
getColor
public org.cloudburstmc.api.util.data.BlockColor getColor(org.cloudburstmc.api.block.Block block)- Overrides:
getColorin classBlockBehaviorTransparent
-
getBlockFace
public org.cloudburstmc.api.util.Direction getBlockFace(org.cloudburstmc.api.block.BlockState state) -
getBlockFace
public org.cloudburstmc.api.util.Direction getBlockFace(int meta)
-