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 FlowingFluid
FlowingFluid.SpreadContext -
Field Summary
Fields inherited from class FlowingFluid
FALLING, LEVELFields inherited from class Fluid
FLUID_STATE_REGISTRY, stateDefinition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidanimateTick(Level level, BlockPos pos, FluidState fluidState, RandomSource random) protected voidbeforeDestroyingBlock(LevelAccessor level, BlockPos pos, BlockState state) booleancanBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid other, Direction direction) protected booleancanConvertToSource(ServerLevel level) createLegacyBlock(FluidState fluidState) protected voidentityInside(Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) @Nullable ParticleOptionsintgetDropOff(LevelReader level) protected floatintgetSlopeFindDistance(LevelReader level) intgetTickDelay(LevelReader level) booleanMethods inherited from class FlowingFluid
canConvertToSource, createFluidStateDefinition, getAmount, getFlow, getFlowing, getHeight, getLegacyLevel, getNewLiquid, getOwnHeight, getShape, getSlopeDistance, getSource, getSpread, getSpreadDelay, isSolidFace, spread, spreadTo, tickMethods inherited from class Fluid
builtInRegistryHolder, computeDefaultResource, defaultFluidState, getAABB, getFluidType, getStateDefinition, is, isEmpty, isRandomlyTicking, isSource, randomTick, registerDefaultState, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IFluidExtension
appendHoverText, 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
- Overrides:
animateTickin classFluid
-
getDripParticle
- Overrides:
getDripParticlein classFluid
-
canConvertToSource
- Specified by:
canConvertToSourcein classFlowingFluid
-
beforeDestroyingBlock
- Specified by:
beforeDestroyingBlockin classFlowingFluid
-
entityInside
protected void entityInside(Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) - Overrides:
entityInsidein classFluid
-
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 state, BlockGetter level, BlockPos pos, Fluid other, Direction direction) - Specified by:
canBeReplacedWithin classFluid
-
getExplosionResistance
protected float getExplosionResistance()- Specified by:
getExplosionResistancein classFluid
-
getPickupSound
- Overrides:
getPickupSoundin classFluid
-