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
-
Nested Class Summary
Nested ClassesNested 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, LEVELFields inherited from class net.minecraft.fluid.Fluid
FLUID_STATE_REGISTRY, stateDefinitionFields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidanimateTick(World p_204522_1_, BlockPos p_204522_2_, FluidState p_204522_3_, Random p_204522_4_) protected voidbeforeDestroyingBlock(IWorld p_205580_1_, BlockPos p_205580_2_, BlockState p_205580_3_) booleancanBeReplacedWith(FluidState p_215665_1_, IBlockReader p_215665_2_, BlockPos p_215665_3_, Fluid p_215665_4_, Direction p_215665_5_) protected booleancreateLegacyBlock(FluidState p_204527_1_) private voidintgetDropOff(IWorldReader p_204528_1_) protected floatintgetSlopeFindDistance(IWorldReader p_185698_1_) intgetSpreadDelay(World p_215667_1_, BlockPos p_215667_2_, FluidState p_215667_3_, FluidState p_215667_4_) intgetTickDelay(IWorldReader p_205569_1_) private booleanhasFlammableNeighbours(IWorldReader p_176369_1_, BlockPos p_176369_2_) private booleanisFlammable(IWorldReader p_176368_1_, BlockPos p_176368_2_) Deprecated.private booleanisFlammable(IWorldReader world, BlockPos pos, Direction face) protected booleanbooleanvoidrandomTick(World p_207186_1_, BlockPos p_207186_2_, FluidState p_207186_3_, Random p_207186_4_) protected voidspreadTo(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, tickMethods inherited from class net.minecraft.fluid.Fluid
createAttributes, defaultFluidState, getAmount, getAttributes, getStateDefinition, getTags, is, isEmpty, isSource, registerDefaultStateMethods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeFluid
getExplosionResistance, getFluid, isAABBInsideLiquid, isAABBInsideMaterial, isEntityInside
-
Constructor Details
-
LavaFluid
public LavaFluid()
-
-
Method Details
-
getFlowing
- Specified by:
getFlowingin classFlowingFluid
-
getSource
- Specified by:
getSourcein classFlowingFluid
-
getBucket
-
animateTick
public void animateTick(World p_204522_1_, BlockPos p_204522_2_, FluidState p_204522_3_, Random p_204522_4_) - Overrides:
animateTickin classFluid
-
randomTick
public void randomTick(World p_207186_1_, BlockPos p_207186_2_, FluidState p_207186_3_, Random p_207186_4_) - Overrides:
randomTickin classFluid
-
hasFlammableNeighbours
-
isFlammable
Deprecated.Forge: useisFlammable(IWorldReader,BlockPos,Direction)instead -
isFlammable
-
getDripParticle
- Overrides:
getDripParticlein classFluid
-
beforeDestroyingBlock
protected void beforeDestroyingBlock(IWorld p_205580_1_, BlockPos p_205580_2_, BlockState p_205580_3_) - 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 p_215665_1_, IBlockReader p_215665_2_, BlockPos p_215665_3_, Fluid p_215665_4_, Direction p_215665_5_) - Specified by:
canBeReplacedWithin classFluid
-
getTickDelay
- Specified by:
getTickDelayin classFluid
-
getSpreadDelay
public int getSpreadDelay(World p_215667_1_, BlockPos p_215667_2_, FluidState p_215667_3_, FluidState p_215667_4_) - Overrides:
getSpreadDelayin classFlowingFluid
-
fizz
-
canConvertToSource
protected boolean canConvertToSource()- Specified by:
canConvertToSourcein 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:
spreadToin classFlowingFluid
-
isRandomlyTicking
protected boolean isRandomlyTicking()- Overrides:
isRandomlyTickingin classFluid
-
getExplosionResistance
protected float getExplosionResistance()- Specified by:
getExplosionResistancein classFluid
-
isFlammable(IWorldReader,BlockPos,Direction)instead