Class WaterFluid
java.lang.Object
net.minecraft.world.level.material.Fluid
net.minecraft.world.level.material.FlowingFluid
net.minecraft.world.level.material.WaterFluid
- All Implemented Interfaces:
IFluidExtension
- Direct Known Subclasses:
WaterFluid.Flowing
,WaterFluid.Source
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.material.FlowingFluid
FlowingFluid.BlockStatePairKey, FlowingFluid.SpreadContext
-
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
animateTick
(Level pLevel, BlockPos pPos, FluidState pState, RandomSource pRandom) protected void
beforeDestroyingBlock
(LevelAccessor pLevel, BlockPos pPos, BlockState pState) boolean
canBeReplacedWith
(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) protected boolean
canConvertToSource
(ServerLevel pLevel) createLegacyBlock
(FluidState pState) protected void
entityInside
(Level pLevel, BlockPos pPos, Entity pEntity, InsideBlockEffectApplier pEffectApplier) int
getDropOff
(LevelReader pLevel) protected float
int
getSlopeFindDistance
(LevelReader pLevel) int
getTickDelay
(LevelReader pLevel) boolean
Methods inherited from class net.minecraft.world.level.material.FlowingFluid
canConvertToSource, createFluidStateDefinition, getAmount, getFlow, getFlowing, getHeight, getLegacyLevel, getNewLiquid, getOwnHeight, getShape, getSlopeDistance, getSource, getSpread, getSpreadDelay, isSolidFace, isWaterHole, spread, spreadTo, tick
Methods inherited from class net.minecraft.world.level.material.Fluid
builtInRegistryHolder, defaultFluidState, getAABB, getFluidType, getStateDefinition, is, isEmpty, isRandomlyTicking, isSource, randomTick, registerDefaultState, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.common.extensions.IFluidExtension
canExtinguish, canHydrate, getAdjacentBlockPathType, getBlockPathType, getExplosionResistance, move, supportsBoating
-
Constructor Details
-
WaterFluid
public WaterFluid()
-
-
Method Details
-
getFlowing
- Specified by:
getFlowing
in classFlowingFluid
-
getSource
- Specified by:
getSource
in classFlowingFluid
-
getBucket
-
animateTick
- Overrides:
animateTick
in classFluid
-
getDripParticle
- Overrides:
getDripParticle
in classFluid
-
canConvertToSource
- Specified by:
canConvertToSource
in classFlowingFluid
-
beforeDestroyingBlock
- Specified by:
beforeDestroyingBlock
in classFlowingFluid
-
entityInside
protected void entityInside(Level pLevel, BlockPos pPos, Entity pEntity, InsideBlockEffectApplier pEffectApplier) - Overrides:
entityInside
in classFluid
-
getSlopeFindDistance
- Specified by:
getSlopeFindDistance
in classFlowingFluid
-
createLegacyBlock
- Specified by:
createLegacyBlock
in classFluid
-
isSame
-
getDropOff
- Specified by:
getDropOff
in classFlowingFluid
-
getTickDelay
- Specified by:
getTickDelay
in classFluid
-
canBeReplacedWith
public boolean canBeReplacedWith(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) - Specified by:
canBeReplacedWith
in classFluid
-
getExplosionResistance
protected float getExplosionResistance()- Specified by:
getExplosionResistance
in classFluid
-
getPickupSound
- Overrides:
getPickupSound
in classFluid
-