Class LavaFluid
java.lang.Object
net.minecraft.world.level.material.Fluid
net.minecraft.world.level.material.FlowingFluid
net.minecraft.world.level.material.LavaFluid
- All Implemented Interfaces:
IFluidExtension
- Direct Known Subclasses:
LavaFluid.Flowing,LavaFluid.Source
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.material.FlowingFluid
FlowingFluid.BlockStatePairKey, FlowingFluid.SpreadContext -
Field Summary
FieldsFields inherited from class net.minecraft.world.level.material.FlowingFluid
FALLING, LEVELFields inherited from class net.minecraft.world.level.material.Fluid
FLUID_STATE_REGISTRY, stateDefinition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidanimateTick(Level p_230567_, BlockPos p_230568_, FluidState p_230569_, RandomSource p_230570_) protected voidbeforeDestroyingBlock(LevelAccessor pLevel, BlockPos pPos, BlockState pState) booleancanBeReplacedWith(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) protected booleancanConvertToSource(ServerLevel p_376200_) createLegacyBlock(FluidState pState) protected voidentityInside(Level p_405274_, BlockPos p_404936_, Entity p_405835_, InsideBlockEffectApplier p_404807_) private voidfizz(LevelAccessor pLevel, BlockPos pPos) intgetDropOff(LevelReader pLevel) protected floatintgetSlopeFindDistance(LevelReader pLevel) intgetSpreadDelay(Level p_76203_, BlockPos p_76204_, FluidState p_76205_, FluidState p_76206_) intgetTickDelay(LevelReader p_76226_) private booleanhasFlammableNeighbours(LevelReader pLevel, BlockPos pPos) private booleanisFlammable(LevelReader pLevel, BlockPos pPos) Deprecated.private booleanisFlammable(LevelReader pLevel, BlockPos pPos, Direction face) protected booleanbooleanvoidrandomTick(ServerLevel p_376493_, BlockPos p_230573_, FluidState p_230574_, RandomSource p_230575_) protected voidspreadTo(LevelAccessor pLevel, BlockPos pPos, BlockState pBlockState, Direction pDirection, FluidState pFluidState) Methods inherited from class net.minecraft.world.level.material.FlowingFluid
canConvertToSource, createFluidStateDefinition, getAmount, getFlow, getFlowing, getHeight, getLegacyLevel, getNewLiquid, getOwnHeight, getShape, getSlopeDistance, getSource, getSpread, isSolidFace, isWaterHole, spread, tickMethods inherited from class net.minecraft.world.level.material.Fluid
builtInRegistryHolder, computeDefaultResource, defaultFluidState, getAABB, getFluidType, getStateDefinition, is, isEmpty, isSource, registerDefaultState, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.IFluidExtension
canExtinguish, canHydrate, getAdjacentBlockPathType, getBlockPathType, getExplosionResistance, move, supportsBoating
-
Field Details
-
MIN_LEVEL_CUTOFF
public static final float MIN_LEVEL_CUTOFF- See Also:
-
-
Constructor Details
-
LavaFluid
public LavaFluid()
-
-
Method Details
-
getFlowing
- Specified by:
getFlowingin classFlowingFluid
-
getSource
- Specified by:
getSourcein classFlowingFluid
-
getBucket
-
animateTick
public void animateTick(Level p_230567_, BlockPos p_230568_, FluidState p_230569_, RandomSource p_230570_) - Overrides:
animateTickin classFluid
-
randomTick
public void randomTick(ServerLevel p_376493_, BlockPos p_230573_, FluidState p_230574_, RandomSource p_230575_) - Overrides:
randomTickin classFluid
-
entityInside
protected void entityInside(Level p_405274_, BlockPos p_404936_, Entity p_405835_, InsideBlockEffectApplier p_404807_) - Overrides:
entityInsidein classFluid
-
hasFlammableNeighbours
-
isFlammable
Deprecated.Forge: useisFlammable(LevelReader,BlockPos, Direction)instead -
isFlammable
-
getDripParticle
- Overrides:
getDripParticlein classFluid
-
beforeDestroyingBlock
- Specified by:
beforeDestroyingBlockin classFlowingFluid
-
getSlopeFindDistance
- Specified by:
getSlopeFindDistancein classFlowingFluid
-
createLegacyBlock
- Specified by:
createLegacyBlockin classFluid
-
isSame
-
getDropOff
- Specified by:
getDropOffin classFlowingFluid
-
canBeReplacedWith
public boolean canBeReplacedWith(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) - Specified by:
canBeReplacedWithin classFluid
-
getTickDelay
- Specified by:
getTickDelayin classFluid
-
getSpreadDelay
public int getSpreadDelay(Level p_76203_, BlockPos p_76204_, FluidState p_76205_, FluidState p_76206_) - Overrides:
getSpreadDelayin classFlowingFluid
-
fizz
-
canConvertToSource
- Specified by:
canConvertToSourcein classFlowingFluid
-
spreadTo
protected void spreadTo(LevelAccessor pLevel, BlockPos pPos, BlockState pBlockState, Direction pDirection, FluidState pFluidState) - Overrides:
spreadToin classFlowingFluid
-
isRandomlyTicking
protected boolean isRandomlyTicking()- Overrides:
isRandomlyTickingin classFluid
-
getExplosionResistance
protected float getExplosionResistance()- Specified by:
getExplosionResistancein classFluid
-
getPickupSound
- Overrides:
getPickupSoundin classFluid
-
isFlammable(LevelReader,BlockPos, Direction)instead