Class LavaFluid
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<Fluid>
net.minecraft.world.level.material.Fluid
net.minecraft.world.level.material.FlowingFluid
net.minecraft.world.level.material.LavaFluid
- All Implemented Interfaces:
IForgeFluid
,IForgeRegistryEntry<Fluid>
- Direct Known Subclasses:
LavaFluid.Flowing
,LavaFluid.Source
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
Field Summary
Fields 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
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
animateTick(Level p_76208_, BlockPos p_76209_, FluidState p_76210_, Random p_76211_)
protected void
beforeDestroyingBlock(LevelAccessor p_76216_, BlockPos p_76217_, BlockState p_76218_)
boolean
canBeReplacedWith(FluidState p_76233_, BlockGetter p_76234_, BlockPos p_76235_, Fluid p_76236_, Direction p_76237_)
protected boolean
createLegacyBlock(FluidState p_76249_)
private void
fizz(LevelAccessor p_76213_, BlockPos p_76214_)
int
getDropOff(LevelReader p_76252_)
protected float
int
getSlopeFindDistance(LevelReader p_76244_)
int
getSpreadDelay(Level p_76203_, BlockPos p_76204_, FluidState p_76205_, FluidState p_76206_)
int
getTickDelay(LevelReader p_76226_)
private boolean
hasFlammableNeighbours(LevelReader p_76228_, BlockPos p_76229_)
private boolean
isFlammable(LevelReader p_76246_, BlockPos p_76247_)
Deprecated.private boolean
isFlammable(LevelReader level, BlockPos pos, Direction face)
protected boolean
boolean
void
randomTick(Level p_76239_, BlockPos p_76240_, FluidState p_76241_, Random p_76242_)
protected void
spreadTo(LevelAccessor p_76220_, BlockPos p_76221_, BlockState p_76222_, Direction p_76223_, FluidState p_76224_)
Methods inherited from class net.minecraft.world.level.material.FlowingFluid
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
createAttributes, defaultFluidState, getAttributes, getStateDefinition, getTags, is, isEmpty, isSource, registerDefaultState
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgeFluid
getExplosionResistance, isAABBInsideLiquid, isAABBInsideMaterial, isEntityInside
-
Field Details
-
MIN_LEVEL_CUTOFF
public static final float MIN_LEVEL_CUTOFF- See Also:
- Constant Field Values
-
-
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
protected void beforeDestroyingBlock(LevelAccessor p_76216_, BlockPos p_76217_, BlockState p_76218_)- 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 p_76233_, BlockGetter p_76234_, BlockPos p_76235_, Fluid p_76236_, Direction p_76237_)- 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
protected boolean canConvertToSource()- Specified by:
canConvertToSource
in classFlowingFluid
-
spreadTo
protected void spreadTo(LevelAccessor p_76220_, BlockPos p_76221_, BlockState p_76222_, Direction p_76223_, FluidState p_76224_)- 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