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
- Mappings:
Namespace Name official ddxintermediary net/minecraft/class_3621named net/minecraft/fluid/WaterFluid
-
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()Optional<SoundEvent>getBucketFillSound()Returns the sound played when filling a bucket with this fluid.ItemgetBucketItem()FluidgetFlowing()intgetFlowSpeed(WorldView world)intgetLevelDecreasePerBlock(WorldView world)@Nullable 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, getBlockStateLevel, getFlowing, getHeight, getHeight, getLevel, getNextTickDelay, getShape, getSpread, getStill, getUpdatedState, getVelocity, method_15742, method_15749, onScheduledTick, tryFlowMethods inherited from class net.minecraft.fluid.Fluid
getDefaultState, getStateManager, hasRandomTicks, isEmpty, isIn, isStill, onRandomTick, setDefaultState
-
Constructor Details
-
WaterFluid
public WaterFluid()
-
-
Method Details
-
getFlowing
- Specified by:
getFlowingin classFlowableFluid- Mappings:
Namespace Name Mixin selector official dLddo;d()Lddp;intermediary method_15750Lnet/minecraft/class_3609;method_15750()Lnet/minecraft/class_3611;named getFlowingLnet/minecraft/fluid/FlowableFluid;getFlowing()Lnet/minecraft/fluid/Fluid;
-
getStill
- Specified by:
getStillin classFlowableFluid- Mappings:
Namespace Name Mixin selector official eLddo;e()Lddp;intermediary method_15751Lnet/minecraft/class_3609;method_15751()Lnet/minecraft/class_3611;named getStillLnet/minecraft/fluid/FlowableFluid;getStill()Lnet/minecraft/fluid/Fluid;
-
getBucketItem
- Specified by:
getBucketItemin classFluid- Mappings:
Namespace Name Mixin selector official aLddp;a()Lbpn;intermediary method_15774Lnet/minecraft/class_3611;method_15774()Lnet/minecraft/class_1792;named getBucketItemLnet/minecraft/fluid/Fluid;getBucketItem()Lnet/minecraft/item/Item;
-
randomDisplayTick
- Overrides:
randomDisplayTickin classFluid- Mappings:
Namespace Name Mixin selector official aLddp;a(Lbvr;Lgb;Lddq;Ljava/util/Random;)Vintermediary method_15776Lnet/minecraft/class_3611;method_15776(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;Ljava/util/Random;)Vnamed randomDisplayTickLnet/minecraft/fluid/Fluid;randomDisplayTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/FluidState;Ljava/util/Random;)V
-
getParticle
- Overrides:
getParticlein classFluid- Mappings:
Namespace Name Mixin selector official iLddp;i()Lho;intermediary method_15787Lnet/minecraft/class_3611;method_15787()Lnet/minecraft/class_2394;named getParticleLnet/minecraft/fluid/Fluid;getParticle()Lnet/minecraft/particle/ParticleEffect;
-
isInfinite
protected boolean isInfinite()- Specified by:
isInfinitein classFlowableFluid- Mappings:
Namespace Name Mixin selector official fLddo;f()Zintermediary method_15737Lnet/minecraft/class_3609;method_15737()Znamed isInfiniteLnet/minecraft/fluid/FlowableFluid;isInfinite()Z
-
beforeBreakingBlock
- Specified by:
beforeBreakingBlockin classFlowableFluid- Mappings:
Namespace Name Mixin selector official aLddo;a(Lbvs;Lgb;Lcjr;)Vintermediary method_15730Lnet/minecraft/class_3609;method_15730(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed beforeBreakingBlockLnet/minecraft/fluid/FlowableFluid;beforeBreakingBlock(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
getFlowSpeed
- Specified by:
getFlowSpeedin classFlowableFluid- Mappings:
Namespace Name Mixin selector official bLddo;b(Lbvu;)Iintermediary method_15733Lnet/minecraft/class_3609;method_15733(Lnet/minecraft/class_4538;)Inamed getFlowSpeedLnet/minecraft/fluid/FlowableFluid;getFlowSpeed(Lnet/minecraft/world/WorldView;)I
-
toBlockState
- Specified by:
toBlockStatein classFluid- Mappings:
Namespace Name Mixin selector official bLddp;b(Lddq;)Lcjr;intermediary method_15790Lnet/minecraft/class_3611;method_15790(Lnet/minecraft/class_3610;)Lnet/minecraft/class_2680;named toBlockStateLnet/minecraft/fluid/Fluid;toBlockState(Lnet/minecraft/fluid/FluidState;)Lnet/minecraft/block/BlockState;
-
matchesType
- Overrides:
matchesTypein classFluid- Mappings:
Namespace Name Mixin selector official aLddp;a(Lddp;)Zintermediary method_15780Lnet/minecraft/class_3611;method_15780(Lnet/minecraft/class_3611;)Znamed matchesTypeLnet/minecraft/fluid/Fluid;matchesType(Lnet/minecraft/fluid/Fluid;)Z
-
getLevelDecreasePerBlock
- Specified by:
getLevelDecreasePerBlockin classFlowableFluid- Mappings:
Namespace Name Mixin selector official cLddo;c(Lbvu;)Iintermediary method_15739Lnet/minecraft/class_3609;method_15739(Lnet/minecraft/class_4538;)Inamed getLevelDecreasePerBlockLnet/minecraft/fluid/FlowableFluid;getLevelDecreasePerBlock(Lnet/minecraft/world/WorldView;)I
-
getTickRate
- Specified by:
getTickRatein classFluid- Mappings:
Namespace Name Mixin selector official aLddp;a(Lbvu;)Iintermediary method_15789Lnet/minecraft/class_3611;method_15789(Lnet/minecraft/class_4538;)Inamed getTickRateLnet/minecraft/fluid/Fluid;getTickRate(Lnet/minecraft/world/WorldView;)I
-
canBeReplacedWith
public boolean canBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction)- Specified by:
canBeReplacedWithin classFluid- Mappings:
Namespace Name Mixin selector official aLddp;a(Lddq;Lbuv;Lgb;Lddp;Lgg;)Zintermediary method_15777Lnet/minecraft/class_3611;method_15777(Lnet/minecraft/class_3610;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3611;Lnet/minecraft/class_2350;)Znamed canBeReplacedWithLnet/minecraft/fluid/Fluid;canBeReplacedWith(Lnet/minecraft/fluid/FluidState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/Fluid;Lnet/minecraft/util/math/Direction;)Z
-
getBlastResistance
protected float getBlastResistance()- Specified by:
getBlastResistancein classFluid- Mappings:
Namespace Name Mixin selector official cLddp;c()Fintermediary method_15784Lnet/minecraft/class_3611;method_15784()Fnamed getBlastResistanceLnet/minecraft/fluid/Fluid;getBlastResistance()F
-
getBucketFillSound
Returns the sound played when filling a bucket with this fluid.- Overrides:
getBucketFillSoundin classFluid- Mappings:
Namespace Name Mixin selector official kLddp;k()Ljava/util/Optional;intermediary method_32359Lnet/minecraft/class_3611;method_32359()Ljava/util/Optional;named getBucketFillSoundLnet/minecraft/fluid/Fluid;getBucketFillSound()Ljava/util/Optional;
-