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 Classes -
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 pLevel, BlockPos pPos, FluidState pState, RandomSource pRandom) protected void
beforeDestroyingBlock
(LevelAccessor pLevel, BlockPos pPos, BlockState pState) boolean
canBeReplacedWith
(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) protected boolean
canConvertToSource
(Level pLevel) createLegacyBlock
(FluidState pState) private void
fizz
(LevelAccessor pLevel, BlockPos pPos) int
getDropOff
(LevelReader pLevel) protected float
int
getSlopeFindDistance
(LevelReader pLevel) int
getSpreadDelay
(Level pLevel, BlockPos pPos, FluidState pCurrentState, FluidState pNewState) int
getTickDelay
(LevelReader pLevel) 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
(Level pLevel, BlockPos pPos, FluidState pState, RandomSource pRandom) protected void
spreadTo
(LevelAccessor pLevel, BlockPos pPos, BlockState pBlockState, Direction pDirection, FluidState pFluidState) Methods inherited from class net.minecraft.world.level.material.FlowingFluid
canConvertToSource, canSpreadTo, createFluidStateDefinition, getAmount, getFlow, getFlowing, getHeight, getLegacyLevel, getNewLiquid, getOwnHeight, getShape, getSlopeDistance, getSource, getSpread, isSolidFace, spread, tick
Methods inherited from class net.minecraft.world.level.material.Fluid
builtInRegistryHolder, defaultFluidState, 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
- Overrides:
animateTick
in classFluid
-
randomTick
- Overrides:
randomTick
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 pLevel, BlockPos pPos, FluidState pCurrentState, FluidState pNewState) - 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