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 level, BlockPos pos, FluidState state, RandomSource random) protected void
beforeDestroyingBlock
(LevelAccessor level, BlockPos pos, BlockState state) boolean
canBeReplacedWith
(FluidState fluidState, BlockGetter blockReader, BlockPos pos, Fluid fluid, Direction direction) protected boolean
canConvertToSource
(Level level) createLegacyBlock
(FluidState state) private void
fizz
(LevelAccessor level, BlockPos pos) int
getDropOff
(LevelReader level) protected float
int
getSlopeFindDistance
(LevelReader level) int
getSpreadDelay
(Level level, BlockPos pos, FluidState currentState, FluidState newState) int
getTickDelay
(LevelReader level) private boolean
hasFlammableNeighbours
(LevelReader level, BlockPos pos) private boolean
isFlammable
(LevelReader level, BlockPos pos) Deprecated.private boolean
isFlammable
(LevelReader p_level, BlockPos p_pos, Direction face) protected boolean
boolean
void
randomTick
(Level level, BlockPos pos, FluidState state, RandomSource random) protected void
spreadTo
(LevelAccessor level, BlockPos pos, BlockState blockState, Direction direction, FluidState fluidState) 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 fluidState, BlockGetter blockReader, BlockPos pos, Fluid fluid, Direction direction) - Specified by:
canBeReplacedWith
in classFluid
-
getTickDelay
- Specified by:
getTickDelay
in classFluid
-
getSpreadDelay
- Overrides:
getSpreadDelay
in classFlowingFluid
-
fizz
-
canConvertToSource
- Specified by:
canConvertToSource
in classFlowingFluid
-
spreadTo
protected void spreadTo(LevelAccessor level, BlockPos pos, BlockState blockState, Direction direction, FluidState fluidState) - 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