Class BlockBehaviorLava
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.BlockBehaviorLiquid
org.cloudburstmc.server.block.behavior.BlockBehaviorLava
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cloudburstmc.server.block.behavior.BlockBehaviorLiquid
BlockBehaviorLiquid.FlowState -
Field Summary
Fields inherited from class org.cloudburstmc.server.block.behavior.BlockBehaviorLiquid
adjacentSources, flowingId, flowVector, stationaryId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.nukkitx.math.vector.Vector3faddVelocityToEntity(org.cloudburstmc.api.block.Block block, com.nukkitx.math.vector.Vector3f vector, org.cloudburstmc.api.entity.Entity entity)protected voidcheckForHarden(org.cloudburstmc.api.block.Block block)protected voidflowIntoBlock(org.cloudburstmc.api.block.Block block, int newFlowDecay, boolean falling)org.cloudburstmc.api.util.data.BlockColorgetColor(org.cloudburstmc.api.block.Block block)intgetFlowDecayPerBlock(org.cloudburstmc.api.block.Block block)protected booleanisSurroundingBlockFlammable(org.cloudburstmc.api.block.Block block)voidonEntityCollide(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.entity.Entity entity)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)inttickRate()Methods inherited from class org.cloudburstmc.server.block.behavior.BlockBehaviorLiquid
canFlowInto, clearCaches, getDrops, getEffectiveFlowDecay, getFlowDecay, getFlowingType, getFlowVector, getFluidHeightPercent, getMaxY, getState, getStationaryId, hasEntityCollision, isLiquid, isSameLiquid, isWater, liquidCollide, recalculateBoundingBox, toItem, triggerLavaMixEffects, usesWaterLoggingMethods inherited from class org.cloudburstmc.server.block.behavior.BaseBlockBehavior
getBreakTime, placeBlockMethods inherited from class org.cloudburstmc.api.block.behavior.BlockBehavior
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, getFilterLevel, getFrictionFactor, getHardness, getLightLevel, getMinimalTier, getResistance, getSaveId, getStrongPower, getToolType, getWeakPower, hasComparatorInputOverride, isBreakable, isNormalBlock, isPowerSource, isSolid, isTransparent, onActivate, onActivate, onBreak, onBreak, placeBlock, placeBlock, placeBlock, removeBlock, removeBlock
-
Constructor Details
-
BlockBehaviorLava
public BlockBehaviorLava()
-
-
Method Details
-
onEntityCollide
public void onEntityCollide(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.entity.Entity entity)- Overrides:
onEntityCollidein classBlockBehaviorLiquid
-
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 classBlockBehaviorLiquid
-
isSurroundingBlockFlammable
protected boolean isSurroundingBlockFlammable(org.cloudburstmc.api.block.Block block) -
getColor
public org.cloudburstmc.api.util.data.BlockColor getColor(org.cloudburstmc.api.block.Block block)- Overrides:
getColorin classBlockBehaviorTransparent
-
tickRate
public int tickRate()- Overrides:
tickRatein classorg.cloudburstmc.api.block.behavior.BlockBehavior
-
getFlowDecayPerBlock
public int getFlowDecayPerBlock(org.cloudburstmc.api.block.Block block)- Overrides:
getFlowDecayPerBlockin classBlockBehaviorLiquid
-
checkForHarden
protected void checkForHarden(org.cloudburstmc.api.block.Block block)- Overrides:
checkForHardenin classBlockBehaviorLiquid
-
flowIntoBlock
protected void flowIntoBlock(org.cloudburstmc.api.block.Block block, int newFlowDecay, boolean falling)- Overrides:
flowIntoBlockin classBlockBehaviorLiquid
-
addVelocityToEntity
public com.nukkitx.math.vector.Vector3f addVelocityToEntity(org.cloudburstmc.api.block.Block block, com.nukkitx.math.vector.Vector3f vector, org.cloudburstmc.api.entity.Entity entity)- Overrides:
addVelocityToEntityin classBlockBehaviorLiquid
-