Package net.minecraft.fluid
Class WaterFluid
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<Fluid>
-
- net.minecraft.fluid.Fluid
-
- net.minecraft.fluid.FlowingFluid
-
- net.minecraft.fluid.WaterFluid
-
- All Implemented Interfaces:
IForgeFluid,IForgeRegistryEntry<Fluid>
- Direct Known Subclasses:
WaterFluid.Flowing,WaterFluid.Source
public abstract class WaterFluid extends FlowingFluid
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWaterFluid.Flowingstatic classWaterFluid.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 WaterFluid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidanimateTick(World p_204522_1_, BlockPos p_204522_2_, FluidState p_204522_3_, java.util.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 booleancanConvertToSource()BlockStatecreateLegacyBlock(FluidState p_204527_1_)ItemgetBucket()IParticleDatagetDripParticle()intgetDropOff(IWorldReader p_204528_1_)protected floatgetExplosionResistance()FluidgetFlowing()intgetSlopeFindDistance(IWorldReader p_185698_1_)FluidgetSource()intgetTickDelay(IWorldReader p_205569_1_)booleanisSame(Fluid p_207187_1_)-
Methods inherited from class net.minecraft.fluid.FlowingFluid
canSpreadTo, createFluidStateDefinition, getFlow, getFlowing, getHeight, getLegacyLevel, getNewLiquid, getOwnHeight, getShape, getSlopeDistance, getSource, getSpread, getSpreadDelay, isSolidFace, spread, spreadTo, tick
-
Methods inherited from class net.minecraft.fluid.Fluid
createAttributes, defaultFluidState, getAmount, getAttributes, getStateDefinition, getTags, is, isEmpty, isRandomlyTicking, isSource, randomTick, 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:
getFlowingin classFlowingFluid
-
getSource
public Fluid getSource()
- Specified by:
getSourcein classFlowingFluid
-
animateTick
public void animateTick(World p_204522_1_, BlockPos p_204522_2_, FluidState p_204522_3_, java.util.Random p_204522_4_)
- Overrides:
animateTickin classFluid
-
getDripParticle
@Nullable public IParticleData getDripParticle()
- Overrides:
getDripParticlein classFluid
-
canConvertToSource
protected boolean canConvertToSource()
- Specified by:
canConvertToSourcein classFlowingFluid
-
beforeDestroyingBlock
protected void beforeDestroyingBlock(IWorld p_205580_1_, BlockPos p_205580_2_, BlockState p_205580_3_)
- Specified by:
beforeDestroyingBlockin classFlowingFluid
-
getSlopeFindDistance
public int getSlopeFindDistance(IWorldReader p_185698_1_)
- Specified by:
getSlopeFindDistancein classFlowingFluid
-
createLegacyBlock
public BlockState createLegacyBlock(FluidState p_204527_1_)
- Specified by:
createLegacyBlockin classFluid
-
getDropOff
public int getDropOff(IWorldReader p_204528_1_)
- Specified by:
getDropOffin classFlowingFluid
-
getTickDelay
public int getTickDelay(IWorldReader p_205569_1_)
- Specified by:
getTickDelayin classFluid
-
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
-
getExplosionResistance
protected float getExplosionResistance()
- Specified by:
getExplosionResistancein classFluid
-
-