Package net.minecraft.fluid
Class WaterFluid
java.lang.Object
net.minecraft.fluid.Fluid
net.minecraft.fluid.FlowableFluid
net.minecraft.fluid.WaterFluid
- Direct Known Subclasses:
WaterFluid.Flowing,WaterFluid.Still
public abstract class WaterFluid extends FlowableFluid
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWaterFluid.Flowingstatic classWaterFluid.Still -
Field Summary
Fields inherited from class net.minecraft.fluid.FlowableFluid
FALLING, LEVELFields inherited from class net.minecraft.fluid.Fluid
STATE_IDS, stateManager -
Constructor Summary
Constructors Constructor Description WaterFluid() -
Method Summary
Modifier and Type Method Description protected voidbeforeBreakingBlock(WorldAccess world, BlockPos pos, BlockState state)booleancanBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction)protected floatgetBlastResistance()ItemgetBucketItem()Optional<SoundEvent>getFillSound()FluidgetFlowing()intgetFlowSpeed(WorldView world)intgetLevelDecreasePerBlock(WorldView world)ParticleEffectgetParticle()FluidgetStill()intgetTickRate(WorldView world)protected booleanisInfinite()booleanmatchesType(Fluid fluid)voidrandomDisplayTick(World world, BlockPos pos, FluidState state, Random random)BlockStatetoBlockState(FluidState state)Methods inherited from class net.minecraft.fluid.FlowableFluid
appendProperties, canFlow, flow, getFlowing, getHeight, getHeight, getNextTickDelay, getShape, getSpread, getStill, getUpdatedState, getVelocity, method_15741, method_15742, method_15749, onScheduledTick, tryFlowMethods inherited from class net.minecraft.fluid.Fluid
getDefaultState, getLevel, getStateManager, hasRandomTicks, isEmpty, isIn, isStill, onRandomTick, setDefaultState
-
Constructor Details
-
WaterFluid
public WaterFluid()
-
-
Method Details
-
getFlowing
- Specified by:
getFlowingin classFlowableFluid
-
getStill
- Specified by:
getStillin classFlowableFluid
-
getBucketItem
- Specified by:
getBucketItemin classFluid
-
randomDisplayTick
@Environment(CLIENT) public void randomDisplayTick(World world, BlockPos pos, FluidState state, Random random)- Overrides:
randomDisplayTickin classFluid
-
getParticle
- Overrides:
getParticlein classFluid
-
isInfinite
protected boolean isInfinite()- Specified by:
isInfinitein classFlowableFluid
-
beforeBreakingBlock
- Specified by:
beforeBreakingBlockin classFlowableFluid
-
getFlowSpeed
- Specified by:
getFlowSpeedin classFlowableFluid
-
toBlockState
- Specified by:
toBlockStatein classFluid
-
matchesType
- Overrides:
matchesTypein classFluid
-
getLevelDecreasePerBlock
- Specified by:
getLevelDecreasePerBlockin classFlowableFluid
-
getTickRate
- Specified by:
getTickRatein classFluid
-
canBeReplacedWith
public boolean canBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction)- Specified by:
canBeReplacedWithin classFluid
-
getBlastResistance
protected float getBlastResistance()- Specified by:
getBlastResistancein classFluid
-
getFillSound
- Overrides:
getFillSoundin classFluid
-