Class BlockBehaviorWater
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.BlockBehaviorWater
-
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 TypeMethodDescriptionorg.cloudburstmc.api.util.data.BlockColorgetColor(org.cloudburstmc.api.block.Block block)voidonEntityCollide(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.entity.Entity entity)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()booleanMethods inherited from class org.cloudburstmc.server.block.behavior.BlockBehaviorLiquid
addVelocityToEntity, canFlowInto, checkForHarden, clearCaches, flowIntoBlock, getDrops, getEffectiveFlowDecay, getFlowDecay, getFlowDecayPerBlock, getFlowingType, getFlowVector, getFluidHeightPercent, getMaxY, getState, getStationaryId, hasEntityCollision, isLiquid, isSameLiquid, isWater, liquidCollide, onUpdate, recalculateBoundingBox, toItem, triggerLavaMixEffectsMethods 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
-
BlockBehaviorWater
public BlockBehaviorWater()
-
-
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
-
getColor
public org.cloudburstmc.api.util.data.BlockColor getColor(org.cloudburstmc.api.block.Block block)- Overrides:
getColorin classBlockBehaviorTransparent
-
onEntityCollide
public void onEntityCollide(org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.entity.Entity entity)- Overrides:
onEntityCollidein classBlockBehaviorLiquid
-
tickRate
public int tickRate()- Overrides:
tickRatein classorg.cloudburstmc.api.block.behavior.BlockBehavior
-
usesWaterLogging
public boolean usesWaterLogging()- Overrides:
usesWaterLoggingin classBlockBehaviorLiquid
-