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 Classes -
Field Summary
Fields inherited from class net.minecraft.world.level.material.FlowingFluid
FALLING, LEVELFields inherited from class net.minecraft.world.level.material.Fluid
FLUID_STATE_REGISTRY, stateDefinition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidanimateTick(Level p_230606_, BlockPos p_230607_, FluidState p_230608_, RandomSource p_230609_) protected voidbeforeDestroyingBlock(LevelAccessor p_76450_, BlockPos p_76451_, BlockState p_76452_) booleancanBeReplacedWith(FluidState p_76458_, BlockGetter p_76459_, BlockPos p_76460_, Fluid p_76461_, Direction p_76462_) protected booleancanConvertToSource(Level p_256670_) createLegacyBlock(FluidState p_76466_) intgetDropOff(LevelReader p_76469_) protected floatintgetSlopeFindDistance(LevelReader p_76464_) intgetTickDelay(LevelReader p_76454_) booleanMethods inherited from class net.minecraft.world.level.material.FlowingFluid
canConvertToSource, canSpreadTo, createFluidStateDefinition, getAmount, getFlow, getFlowing, getHeight, getLegacyLevel, getNewLiquid, getOwnHeight, getShape, getSlopeDistance, getSource, getSpread, getSpreadDelay, isSolidFace, spread, spreadTo, tickMethods inherited from class net.minecraft.world.level.material.Fluid
builtInRegistryHolder, defaultFluidState, getFluidType, getStateDefinition, is, isEmpty, isRandomlyTicking, isSource, randomTick, registerDefaultStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getFlowingin classFlowingFluid
-
getSource
- Specified by:
getSourcein classFlowingFluid
-
getBucket
-
animateTick
public void animateTick(Level p_230606_, BlockPos p_230607_, FluidState p_230608_, RandomSource p_230609_) - Overrides:
animateTickin classFluid
-
getDripParticle
- Overrides:
getDripParticlein classFluid
-
canConvertToSource
- Specified by:
canConvertToSourcein classFlowingFluid
-
beforeDestroyingBlock
protected void beforeDestroyingBlock(LevelAccessor p_76450_, BlockPos p_76451_, BlockState p_76452_) - Specified by:
beforeDestroyingBlockin classFlowingFluid
-
getSlopeFindDistance
- Specified by:
getSlopeFindDistancein classFlowingFluid
-
createLegacyBlock
- Specified by:
createLegacyBlockin classFluid
-
isSame
-
getDropOff
- Specified by:
getDropOffin classFlowingFluid
-
getTickDelay
- Specified by:
getTickDelayin classFluid
-
canBeReplacedWith
public boolean canBeReplacedWith(FluidState p_76458_, BlockGetter p_76459_, BlockPos p_76460_, Fluid p_76461_, Direction p_76462_) - Specified by:
canBeReplacedWithin classFluid
-
getExplosionResistance
protected float getExplosionResistance()- Specified by:
getExplosionResistancein classFluid
-
getPickupSound
- Overrides:
getPickupSoundin classFluid
-