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:
- IForgeFluid
- Direct Known Subclasses:
- LavaFluid.Flowing,- LavaFluid.Source
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsFields inherited from class net.minecraft.world.level.material.FlowingFluidFALLING, LEVELFields inherited from class net.minecraft.world.level.material.FluidFLUID_STATE_REGISTRY, stateDefinition
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidanimateTick(Level p_230567_, BlockPos p_230568_, FluidState p_230569_, RandomSource p_230570_) protected voidbeforeDestroyingBlock(LevelAccessor p_76216_, BlockPos p_76217_, BlockState p_76218_) booleancanBeReplacedWith(FluidState p_76233_, BlockGetter p_76234_, BlockPos p_76235_, Fluid p_76236_, Direction p_76237_) protected booleancanConvertToSource(Level p_256295_) createLegacyBlock(FluidState p_76249_) private voidfizz(LevelAccessor p_76213_, BlockPos p_76214_) intgetDropOff(LevelReader p_76252_) protected floatintgetSlopeFindDistance(LevelReader p_76244_) intgetSpreadDelay(Level p_76203_, BlockPos p_76204_, FluidState p_76205_, FluidState p_76206_) intgetTickDelay(LevelReader p_76226_) private booleanhasFlammableNeighbours(LevelReader p_76228_, BlockPos p_76229_) private booleanisFlammable(LevelReader p_76246_, BlockPos p_76247_) Deprecated.private booleanisFlammable(LevelReader level, BlockPos pos, Direction face) protected booleanbooleanvoidrandomTick(Level p_230572_, BlockPos p_230573_, FluidState p_230574_, RandomSource p_230575_) protected voidspreadTo(LevelAccessor p_76220_, BlockPos p_76221_, BlockState p_76222_, Direction p_76223_, FluidState p_76224_) Methods inherited from class net.minecraft.world.level.material.FlowingFluidcanConvertToSource, canSpreadTo, createFluidStateDefinition, getAmount, getFlow, getFlowing, getHeight, getLegacyLevel, getNewLiquid, getOwnHeight, getShape, getSlopeDistance, getSource, getSpread, isSolidFace, spread, tickMethods inherited from class net.minecraft.world.level.material.FluidbuiltInRegistryHolder, defaultFluidState, getFluidType, getStateDefinition, is, isEmpty, isSource, registerDefaultStateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeFluidcanExtinguish, canHydrate, getAdjacentBlockPathType, getBlockPathType, getExplosionResistance, move, shouldUpdateWhileBoating, supportsBoating
- 
Field Details- 
MIN_LEVEL_CUTOFFpublic static final float MIN_LEVEL_CUTOFF- See Also:
 
 
- 
- 
Constructor Details- 
LavaFluidpublic LavaFluid()
 
- 
- 
Method Details- 
getFlowing- Specified by:
- getFlowingin class- FlowingFluid
 
- 
getSource- Specified by:
- getSourcein class- FlowingFluid
 
- 
getBucket
- 
animateTickpublic void animateTick(Level p_230567_, BlockPos p_230568_, FluidState p_230569_, RandomSource p_230570_) - Overrides:
- animateTickin class- Fluid
 
- 
randomTickpublic void randomTick(Level p_230572_, BlockPos p_230573_, FluidState p_230574_, RandomSource p_230575_) - Overrides:
- randomTickin class- Fluid
 
- 
hasFlammableNeighbours
- 
isFlammableDeprecated.Forge: useisFlammable(LevelReader,BlockPos,Direction)instead
- 
isFlammable
- 
getDripParticle- Overrides:
- getDripParticlein class- Fluid
 
- 
beforeDestroyingBlockprotected void beforeDestroyingBlock(LevelAccessor p_76216_, BlockPos p_76217_, BlockState p_76218_) - Specified by:
- beforeDestroyingBlockin class- FlowingFluid
 
- 
getSlopeFindDistance- Specified by:
- getSlopeFindDistancein class- FlowingFluid
 
- 
createLegacyBlock- Specified by:
- createLegacyBlockin class- Fluid
 
- 
isSame
- 
getDropOff- Specified by:
- getDropOffin class- FlowingFluid
 
- 
canBeReplacedWithpublic boolean canBeReplacedWith(FluidState p_76233_, BlockGetter p_76234_, BlockPos p_76235_, Fluid p_76236_, Direction p_76237_) - Specified by:
- canBeReplacedWithin class- Fluid
 
- 
getTickDelay- Specified by:
- getTickDelayin class- Fluid
 
- 
getSpreadDelaypublic int getSpreadDelay(Level p_76203_, BlockPos p_76204_, FluidState p_76205_, FluidState p_76206_) - Overrides:
- getSpreadDelayin class- FlowingFluid
 
- 
fizz
- 
canConvertToSource- Specified by:
- canConvertToSourcein class- FlowingFluid
 
- 
spreadToprotected void spreadTo(LevelAccessor p_76220_, BlockPos p_76221_, BlockState p_76222_, Direction p_76223_, FluidState p_76224_) - Overrides:
- spreadToin class- FlowingFluid
 
- 
isRandomlyTickingprotected boolean isRandomlyTicking()- Overrides:
- isRandomlyTickingin class- Fluid
 
- 
getExplosionResistanceprotected float getExplosionResistance()- Specified by:
- getExplosionResistancein class- Fluid
 
- 
getPickupSound- Overrides:
- getPickupSoundin class- Fluid
 
 
- 
isFlammable(LevelReader,BlockPos,Direction)instead