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 FlowingFluid
FlowingFluid.SpreadContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final floatFields inherited from class FlowingFluid
FALLING, LEVELFields inherited from class Fluid
FLUID_STATE_REGISTRY, stateDefinition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidanimateTick(Level level, BlockPos pos, FluidState fluidState, RandomSource random) protected voidbeforeDestroyingBlock(LevelAccessor level, BlockPos pos, BlockState state) booleancanBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid other, Direction direction) protected booleancanConvertToSource(ServerLevel level) createLegacyBlock(FluidState fluidState) protected voidentityInside(Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) private voidfizz(LevelAccessor level, BlockPos pos) @Nullable ParticleOptionsintgetDropOff(LevelReader level) protected floatintgetSlopeFindDistance(LevelReader level) intgetSpreadDelay(Level level, BlockPos pos, FluidState oldFluidState, FluidState newFluidState) intgetTickDelay(LevelReader level) private booleanhasFlammableNeighbours(LevelReader level, BlockPos pos) private static booleanisFastLava(LevelReader level) private booleanisFlammable(LevelReader level, BlockPos pos) Deprecated.private booleanisFlammable(LevelReader level, BlockPos pos, Direction face) protected booleanbooleanvoidrandomTick(ServerLevel level, BlockPos pos, FluidState fluidState, RandomSource random) protected voidspreadTo(LevelAccessor level, BlockPos pos, BlockState state, Direction direction, FluidState target) Methods inherited from class FlowingFluid
canConvertToSource, createFluidStateDefinition, getAmount, getFlow, getFlowing, getHeight, getLegacyLevel, getNewLiquid, getOwnHeight, getShape, getSlopeDistance, getSource, getSpread, isSolidFace, spread, tickMethods inherited from class Fluid
builtInRegistryHolder, computeDefaultResource, defaultFluidState, getAABB, getFluidType, getStateDefinition, is, isEmpty, isSource, registerDefaultState, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IFluidExtension
appendHoverText, canExtinguish, canHydrate, getAdjacentBlockPathType, getBlockPathType, getExplosionResistance, move, supportsBoating
-
Field Details
-
LIGHT_EMISSION
public static final int LIGHT_EMISSION- See Also:
-
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
- Overrides:
animateTickin classFluid
-
randomTick
- Overrides:
randomTickin classFluid
-
entityInside
protected void entityInside(Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) - 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 state, BlockGetter level, BlockPos pos, Fluid other, Direction direction) - Specified by:
canBeReplacedWithin classFluid
-
getTickDelay
- Specified by:
getTickDelayin classFluid
-
getSpreadDelay
public int getSpreadDelay(Level level, BlockPos pos, FluidState oldFluidState, FluidState newFluidState) - Overrides:
getSpreadDelayin classFlowingFluid
-
fizz
-
canConvertToSource
- Specified by:
canConvertToSourcein classFlowingFluid
-
spreadTo
protected void spreadTo(LevelAccessor level, BlockPos pos, BlockState state, Direction direction, FluidState target) - Overrides:
spreadToin classFlowingFluid
-
isRandomlyTicking
protected boolean isRandomlyTicking()- Overrides:
isRandomlyTickingin classFluid
-
getExplosionResistance
protected float getExplosionResistance()- Specified by:
getExplosionResistancein classFluid
-
getPickupSound
- Overrides:
getPickupSoundin classFluid
-
isFastLava
-
isFlammable(LevelReader,BlockPos,Direction)instead