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
- Mappings:
Namespace Name named net/minecraft/fluid/WaterFluidintermediary net/minecraft/class_3621official eyg
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.fluid.FlowableFluid
FlowableFluid.SpreadCache -
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbeforeBreakingBlock(WorldAccess world, BlockPos pos, BlockState state) booleancanBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) protected floatReturns the sound played when filling a bucket with this fluid.intintgetMaxFlowDistance(WorldView world) Returns the maximum horizontal distance to check for holes the fluid can flow down into.getStill()intgetTickRate(WorldView world) protected booleanisInfinite(ServerWorld world) booleanmatchesType(Fluid fluid) protected voidonEntityCollision(World world, BlockPos pos, Entity entity, EntityCollisionHandler handler) voidrandomDisplayTick(World world, BlockPos pos, FluidState state, Random random) toBlockState(FluidState state) Methods inherited from class net.minecraft.fluid.FlowableFluid
appendProperties, canFlowDownTo, flow, getBlockStateLevel, getFlowing, getHeight, getHeight, getLevel, getMinFlowDownDistance, getNextTickDelay, getShape, getSpread, getStill, getUpdatedState, getVelocity, isFlowBlocked, onScheduledTick, tryFlowMethods inherited from class net.minecraft.fluid.Fluid
getCollisionBox, getDefaultState, getRegistryEntry, getStateManager, hasRandomTicks, isEmpty, isIn, isStill, onRandomTick, setDefaultState
-
Constructor Details
-
WaterFluid
public WaterFluid()
-
-
Method Details
-
getFlowing
- Specified by:
getFlowingin classFlowableFluid- Mappings:
Namespace Name Mixin selector named getFlowingLnet/minecraft/fluid/FlowableFluid;getFlowing()Lnet/minecraft/fluid/Fluid;intermediary method_15750Lnet/minecraft/class_3609;method_15750()Lnet/minecraft/class_3611;official dLexy;d()Lexz;
-
getStill
- Specified by:
getStillin classFlowableFluid- Mappings:
Namespace Name Mixin selector named getStillLnet/minecraft/fluid/FlowableFluid;getStill()Lnet/minecraft/fluid/Fluid;intermediary method_15751Lnet/minecraft/class_3609;method_15751()Lnet/minecraft/class_3611;official eLexy;e()Lexz;
-
getBucketItem
- Specified by:
getBucketItemin classFluid- Mappings:
Namespace Name Mixin selector named getBucketItemLnet/minecraft/fluid/Fluid;getBucketItem()Lnet/minecraft/item/Item;intermediary method_15774Lnet/minecraft/class_3611;method_15774()Lnet/minecraft/class_1792;official aLexz;a()Ldag;
-
randomDisplayTick
- Overrides:
randomDisplayTickin classFluid- Mappings:
Namespace Name Mixin selector named randomDisplayTickLnet/minecraft/fluid/Fluid;randomDisplayTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/FluidState;Lnet/minecraft/util/math/random/Random;)Vintermediary method_15776Lnet/minecraft/class_3611;method_15776(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;Lnet/minecraft/class_5819;)Vofficial aLexz;a(Ldkj;Liw;Leya;Lbai;)V
-
getParticle
- Overrides:
getParticlein classFluid- Mappings:
Namespace Name Mixin selector named getParticleLnet/minecraft/fluid/Fluid;getParticle()Lnet/minecraft/particle/ParticleEffect;intermediary method_15787Lnet/minecraft/class_3611;method_15787()Lnet/minecraft/class_2394;official hLexz;h()Llx;
-
isInfinite
- Specified by:
isInfinitein classFlowableFluid- Mappings:
Namespace Name Mixin selector named isInfiniteLnet/minecraft/fluid/FlowableFluid;isInfinite(Lnet/minecraft/server/world/ServerWorld;)Zintermediary method_15737Lnet/minecraft/class_3609;method_15737(Lnet/minecraft/class_3218;)Zofficial aLexy;a(Lasb;)Z
-
beforeBreakingBlock
- Specified by:
beforeBreakingBlockin classFlowableFluid- Mappings:
Namespace Name Mixin selector named beforeBreakingBlockLnet/minecraft/fluid/FlowableFluid;beforeBreakingBlock(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary method_15730Lnet/minecraft/class_3609;method_15730(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial aLexy;a(Ldkk;Liw;Lebq;)V
-
onEntityCollision
protected void onEntityCollision(World world, BlockPos pos, Entity entity, EntityCollisionHandler handler) - Overrides:
onEntityCollisionin classFluid- Mappings:
Namespace Name Mixin selector named onEntityCollisionLnet/minecraft/fluid/Fluid;onEntityCollision(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityCollisionHandler;)Vintermediary method_67694Lnet/minecraft/class_3611;method_67694(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;Lnet/minecraft/class_10774;)Vofficial aLexz;a(Ldkj;Liw;Lbxe;Lbxx;)V
-
getMaxFlowDistance
Returns the maximum horizontal distance to check for holes the fluid can flow down into.- Specified by:
getMaxFlowDistancein classFlowableFluid- Returns:
- the maximum horizontal distance to check for holes the fluid can flow down into
- Mappings:
Namespace Name Mixin selector named getMaxFlowDistanceLnet/minecraft/fluid/FlowableFluid;getMaxFlowDistance(Lnet/minecraft/world/WorldView;)Iintermediary method_15733Lnet/minecraft/class_3609;method_15733(Lnet/minecraft/class_4538;)Iofficial bLexy;b(Ldkm;)I
-
toBlockState
- Specified by:
toBlockStatein classFluid- Mappings:
Namespace Name Mixin selector named toBlockStateLnet/minecraft/fluid/Fluid;toBlockState(Lnet/minecraft/fluid/FluidState;)Lnet/minecraft/block/BlockState;intermediary method_15790Lnet/minecraft/class_3611;method_15790(Lnet/minecraft/class_3610;)Lnet/minecraft/class_2680;official bLexz;b(Leya;)Lebq;
-
matchesType
- Overrides:
matchesTypein classFluid- Mappings:
Namespace Name Mixin selector named matchesTypeLnet/minecraft/fluid/Fluid;matchesType(Lnet/minecraft/fluid/Fluid;)Zintermediary method_15780Lnet/minecraft/class_3611;method_15780(Lnet/minecraft/class_3611;)Zofficial aLexz;a(Lexz;)Z
-
getLevelDecreasePerBlock
- Specified by:
getLevelDecreasePerBlockin classFlowableFluid- Mappings:
Namespace Name Mixin selector named getLevelDecreasePerBlockLnet/minecraft/fluid/FlowableFluid;getLevelDecreasePerBlock(Lnet/minecraft/world/WorldView;)Iintermediary method_15739Lnet/minecraft/class_3609;method_15739(Lnet/minecraft/class_4538;)Iofficial cLexy;c(Ldkm;)I
-
getTickRate
- Specified by:
getTickRatein classFluid- Mappings:
Namespace Name Mixin selector named getTickRateLnet/minecraft/fluid/Fluid;getTickRate(Lnet/minecraft/world/WorldView;)Iintermediary method_15789Lnet/minecraft/class_3611;method_15789(Lnet/minecraft/class_4538;)Iofficial aLexz;a(Ldkm;)I
-
canBeReplacedWith
public boolean canBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) - Specified by:
canBeReplacedWithin classFluid- Mappings:
Namespace Name Mixin selector named 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;)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;)Zofficial aLexz;a(Leya;Ldjn;Liw;Lexz;Ljc;)Z
-
getBlastResistance
protected float getBlastResistance()- Specified by:
getBlastResistancein classFluid- Mappings:
Namespace Name Mixin selector named getBlastResistanceLnet/minecraft/fluid/Fluid;getBlastResistance()Fintermediary method_15784Lnet/minecraft/class_3611;method_15784()Fofficial cLexz;c()F
-
getBucketFillSound
Returns the sound played when filling a bucket with this fluid.- Overrides:
getBucketFillSoundin classFluid- Mappings:
Namespace Name Mixin selector named getBucketFillSoundLnet/minecraft/fluid/Fluid;getBucketFillSound()Ljava/util/Optional;intermediary method_32359Lnet/minecraft/class_3611;method_32359()Ljava/util/Optional;official jLexz;j()Ljava/util/Optional;
-