Package net.minecraft.fluid
Class LavaFluid
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<Fluid>
-
- net.minecraft.fluid.Fluid
-
- net.minecraft.fluid.FlowingFluid
-
- net.minecraft.fluid.LavaFluid
-
- All Implemented Interfaces:
IForgeFluid
,IForgeRegistryEntry<Fluid>
- Direct Known Subclasses:
LavaFluid.Flowing
,LavaFluid.Source
public abstract class LavaFluid extends FlowingFluid
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LavaFluid.Flowing
static class
LavaFluid.Source
-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
-
Fields inherited from class net.minecraft.fluid.FlowingFluid
FALLING, LEVEL
-
Fields inherited from class net.minecraft.fluid.Fluid
FLUID_STATE_REGISTRY, stateDefinition
-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Constructor Summary
Constructors Constructor Description LavaFluid()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
animateTick(World p_204522_1_, BlockPos p_204522_2_, FluidState p_204522_3_, java.util.Random p_204522_4_)
protected void
beforeDestroyingBlock(IWorld p_205580_1_, BlockPos p_205580_2_, BlockState p_205580_3_)
boolean
canBeReplacedWith(FluidState p_215665_1_, IBlockReader p_215665_2_, BlockPos p_215665_3_, Fluid p_215665_4_, Direction p_215665_5_)
protected boolean
canConvertToSource()
BlockState
createLegacyBlock(FluidState p_204527_1_)
private void
fizz(IWorld p_205581_1_, BlockPos p_205581_2_)
Item
getBucket()
IParticleData
getDripParticle()
int
getDropOff(IWorldReader p_204528_1_)
protected float
getExplosionResistance()
Fluid
getFlowing()
int
getSlopeFindDistance(IWorldReader p_185698_1_)
Fluid
getSource()
int
getSpreadDelay(World p_215667_1_, BlockPos p_215667_2_, FluidState p_215667_3_, FluidState p_215667_4_)
int
getTickDelay(IWorldReader p_205569_1_)
private boolean
hasFlammableNeighbours(IWorldReader p_176369_1_, BlockPos p_176369_2_)
private boolean
isFlammable(IWorldReader p_176368_1_, BlockPos p_176368_2_)
Deprecated.Forge: useisFlammable(IWorldReader,BlockPos,Direction)
insteadprivate boolean
isFlammable(IWorldReader world, BlockPos pos, Direction face)
protected boolean
isRandomlyTicking()
boolean
isSame(Fluid p_207187_1_)
void
randomTick(World p_207186_1_, BlockPos p_207186_2_, FluidState p_207186_3_, java.util.Random p_207186_4_)
protected void
spreadTo(IWorld p_205574_1_, BlockPos p_205574_2_, BlockState p_205574_3_, Direction p_205574_4_, FluidState p_205574_5_)
-
Methods inherited from class net.minecraft.fluid.FlowingFluid
canSpreadTo, createFluidStateDefinition, getFlow, getFlowing, getHeight, getLegacyLevel, getNewLiquid, getOwnHeight, getShape, getSlopeDistance, getSource, getSpread, isSolidFace, spread, tick
-
Methods inherited from class net.minecraft.fluid.Fluid
createAttributes, defaultFluidState, getAmount, 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, getFluid, isAABBInsideLiquid, isAABBInsideMaterial, isEntityInside
-
-
-
-
Method Detail
-
getFlowing
public Fluid getFlowing()
- Specified by:
getFlowing
in classFlowingFluid
-
getSource
public Fluid getSource()
- Specified by:
getSource
in classFlowingFluid
-
animateTick
public void animateTick(World p_204522_1_, BlockPos p_204522_2_, FluidState p_204522_3_, java.util.Random p_204522_4_)
- Overrides:
animateTick
in classFluid
-
randomTick
public void randomTick(World p_207186_1_, BlockPos p_207186_2_, FluidState p_207186_3_, java.util.Random p_207186_4_)
- Overrides:
randomTick
in classFluid
-
hasFlammableNeighbours
private boolean hasFlammableNeighbours(IWorldReader p_176369_1_, BlockPos p_176369_2_)
-
isFlammable
@Deprecated private boolean isFlammable(IWorldReader p_176368_1_, BlockPos p_176368_2_)
Deprecated.Forge: useisFlammable(IWorldReader,BlockPos,Direction)
instead
-
isFlammable
private boolean isFlammable(IWorldReader world, BlockPos pos, Direction face)
-
getDripParticle
@Nullable public IParticleData getDripParticle()
- Overrides:
getDripParticle
in classFluid
-
beforeDestroyingBlock
protected void beforeDestroyingBlock(IWorld p_205580_1_, BlockPos p_205580_2_, BlockState p_205580_3_)
- Specified by:
beforeDestroyingBlock
in classFlowingFluid
-
getSlopeFindDistance
public int getSlopeFindDistance(IWorldReader p_185698_1_)
- Specified by:
getSlopeFindDistance
in classFlowingFluid
-
createLegacyBlock
public BlockState createLegacyBlock(FluidState p_204527_1_)
- Specified by:
createLegacyBlock
in classFluid
-
getDropOff
public int getDropOff(IWorldReader p_204528_1_)
- Specified by:
getDropOff
in classFlowingFluid
-
canBeReplacedWith
public boolean canBeReplacedWith(FluidState p_215665_1_, IBlockReader p_215665_2_, BlockPos p_215665_3_, Fluid p_215665_4_, Direction p_215665_5_)
- Specified by:
canBeReplacedWith
in classFluid
-
getTickDelay
public int getTickDelay(IWorldReader p_205569_1_)
- Specified by:
getTickDelay
in classFluid
-
getSpreadDelay
public int getSpreadDelay(World p_215667_1_, BlockPos p_215667_2_, FluidState p_215667_3_, FluidState p_215667_4_)
- Overrides:
getSpreadDelay
in classFlowingFluid
-
canConvertToSource
protected boolean canConvertToSource()
- Specified by:
canConvertToSource
in classFlowingFluid
-
spreadTo
protected void spreadTo(IWorld p_205574_1_, BlockPos p_205574_2_, BlockState p_205574_3_, Direction p_205574_4_, FluidState p_205574_5_)
- Overrides:
spreadTo
in classFlowingFluid
-
isRandomlyTicking
protected boolean isRandomlyTicking()
- Overrides:
isRandomlyTicking
in classFluid
-
getExplosionResistance
protected float getExplosionResistance()
- Specified by:
getExplosionResistance
in classFluid
-
-