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, LEVEL
Fields inherited from class net.minecraft.world.level.material.Fluid
FLUID_STATE_REGISTRY, stateDefinition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
animateTick
(Level p_230567_, BlockPos p_230568_, FluidState p_230569_, RandomSource p_230570_) protected void
beforeDestroyingBlock
(LevelAccessor pLevel, BlockPos pPos, BlockState pState) boolean
canBeReplacedWith
(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) protected boolean
canConvertToSource
(ServerLevel p_376200_) createLegacyBlock
(FluidState pState) protected void
entityInside
(Level p_405274_, BlockPos p_404936_, Entity p_405835_, InsideBlockEffectApplier p_404807_) private void
fizz
(LevelAccessor pLevel, BlockPos pPos) int
getDropOff
(LevelReader pLevel) protected float
int
getSlopeFindDistance
(LevelReader pLevel) int
getSpreadDelay
(Level p_76203_, BlockPos p_76204_, FluidState p_76205_, FluidState p_76206_) int
getTickDelay
(LevelReader p_76226_) private boolean
hasFlammableNeighbours
(LevelReader pLevel, BlockPos pPos) private boolean
isFlammable
(LevelReader pLevel, BlockPos pPos) Deprecated.private boolean
isFlammable
(LevelReader pLevel, BlockPos pPos, Direction face) protected boolean
boolean
void
randomTick
(ServerLevel p_376493_, BlockPos p_230573_, FluidState p_230574_, RandomSource p_230575_) protected void
spreadTo
(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, tick
Methods inherited from class net.minecraft.world.level.material.Fluid
builtInRegistryHolder, defaultFluidState, getAABB, getFluidType, getStateDefinition, is, isEmpty, isSource, registerDefaultState, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
getFlowing
in classFlowingFluid
-
getSource
- Specified by:
getSource
in classFlowingFluid
-
getBucket
-
animateTick
public void animateTick(Level p_230567_, BlockPos p_230568_, FluidState p_230569_, RandomSource p_230570_) - Overrides:
animateTick
in classFluid
-
randomTick
public void randomTick(ServerLevel p_376493_, BlockPos p_230573_, FluidState p_230574_, RandomSource p_230575_) - Overrides:
randomTick
in classFluid
-
entityInside
protected void entityInside(Level p_405274_, BlockPos p_404936_, Entity p_405835_, InsideBlockEffectApplier p_404807_) - Overrides:
entityInside
in classFluid
-
hasFlammableNeighbours
-
isFlammable
Deprecated.Forge: useisFlammable(LevelReader,BlockPos, Direction)
instead -
isFlammable
-
getDripParticle
- Overrides:
getDripParticle
in classFluid
-
beforeDestroyingBlock
- Specified by:
beforeDestroyingBlock
in classFlowingFluid
-
getSlopeFindDistance
- Specified by:
getSlopeFindDistance
in classFlowingFluid
-
createLegacyBlock
- Specified by:
createLegacyBlock
in classFluid
-
isSame
-
getDropOff
- Specified by:
getDropOff
in classFlowingFluid
-
canBeReplacedWith
public boolean canBeReplacedWith(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) - Specified by:
canBeReplacedWith
in classFluid
-
getTickDelay
- Specified by:
getTickDelay
in classFluid
-
getSpreadDelay
public int getSpreadDelay(Level p_76203_, BlockPos p_76204_, FluidState p_76205_, FluidState p_76206_) - Overrides:
getSpreadDelay
in classFlowingFluid
-
fizz
-
canConvertToSource
- Specified by:
canConvertToSource
in classFlowingFluid
-
spreadTo
protected void spreadTo(LevelAccessor pLevel, BlockPos pPos, BlockState pBlockState, Direction pDirection, FluidState pFluidState) - Overrides:
spreadTo
in classFlowingFluid
-
isRandomlyTicking
protected boolean isRandomlyTicking()- Overrides:
isRandomlyTicking
in classFluid
-
getExplosionResistance
protected float getExplosionResistance()- Specified by:
getExplosionResistance
in classFluid
-
getPickupSound
- Overrides:
getPickupSound
in classFluid
-
isFlammable(LevelReader,BlockPos, Direction)
instead