Package net.minecraft.fluid
Class Fluid
java.lang.Object
net.minecraft.fluid.Fluid
- Direct Known Subclasses:
EmptyFluid,FlowableFluid
- Mappings:
Namespace Name official doxintermediary net/minecraft/class_3611named net/minecraft/fluid/Fluid
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FluidStateprivate final RegistryEntry.Reference<Fluid>static final IdList<FluidState>protected final StateManager<Fluid,FluidState> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Fluid, FluidState> builder) protected abstract booleancanBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) protected abstract floatReturns the sound played when filling a bucket with this fluid.abstract Itemfinal FluidStateabstract floatgetHeight(FluidState state) abstract floatgetHeight(FluidState state, BlockView world, BlockPos pos) abstract intgetLevel(FluidState state) protected @Nullable ParticleEffectDeprecated.abstract VoxelShapegetShape(FluidState state, BlockView world, BlockPos pos) abstract intgetTickRate(WorldView world) protected abstract Vec3dgetVelocity(BlockView world, BlockPos pos, FluidState state) protected booleanprotected booleanisEmpty()booleanDeprecated.abstract booleanisStill(FluidState state) booleanmatchesType(Fluid fluid) protected voidonRandomTick(World world, BlockPos pos, FluidState state, Random random) protected voidonScheduledTick(World world, BlockPos pos, FluidState state) protected voidrandomDisplayTick(World world, BlockPos pos, FluidState state, Random random) protected final voidsetDefaultState(FluidState state) protected abstract BlockStatetoBlockState(FluidState state)
-
Field Details
-
STATE_IDS
- Mappings:
Namespace Name Mixin selector official cLdox;c:Lhg;intermediary field_15904Lnet/minecraft/class_3611;field_15904:Lnet/minecraft/class_2361;named STATE_IDSLnet/minecraft/fluid/Fluid;STATE_IDS:Lnet/minecraft/util/collection/IdList;
-
stateManager
- Mappings:
Namespace Name Mixin selector official dLdox;d:Lcus;intermediary field_15905Lnet/minecraft/class_3611;field_15905:Lnet/minecraft/class_2689;named stateManagerLnet/minecraft/fluid/Fluid;stateManager:Lnet/minecraft/state/StateManager;
-
defaultState
- Mappings:
Namespace Name Mixin selector official aLdox;a:Ldoy;intermediary field_15903Lnet/minecraft/class_3611;field_15903:Lnet/minecraft/class_3610;named defaultStateLnet/minecraft/fluid/Fluid;defaultState:Lnet/minecraft/fluid/FluidState;
-
registryEntry
- Mappings:
Namespace Name Mixin selector official bLdox;b:Lhc$c;intermediary field_36431Lnet/minecraft/class_3611;field_36431:Lnet/minecraft/class_6880$class_6883;named registryEntryLnet/minecraft/fluid/Fluid;registryEntry:Lnet/minecraft/util/registry/RegistryEntry$Reference;
-
-
Constructor Details
-
Fluid
protected Fluid()
-
-
Method Details
-
appendProperties
- Mappings:
Namespace Name Mixin selector official aLdox;a(Lcus$a;)Vintermediary method_15775Lnet/minecraft/class_3611;method_15775(Lnet/minecraft/class_2689$class_2690;)Vnamed appendPropertiesLnet/minecraft/fluid/Fluid;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
getStateManager
- Mappings:
Namespace Name Mixin selector official gLdox;g()Lcus;intermediary method_15783Lnet/minecraft/class_3611;method_15783()Lnet/minecraft/class_2689;named getStateManagerLnet/minecraft/fluid/Fluid;getStateManager()Lnet/minecraft/state/StateManager;
-
setDefaultState
- Mappings:
Namespace Name Mixin selector official fLdox;f(Ldoy;)Vintermediary method_15781Lnet/minecraft/class_3611;method_15781(Lnet/minecraft/class_3610;)Vnamed setDefaultStateLnet/minecraft/fluid/Fluid;setDefaultState(Lnet/minecraft/fluid/FluidState;)V
-
getDefaultState
- Mappings:
Namespace Name Mixin selector official hLdox;h()Ldoy;intermediary method_15785Lnet/minecraft/class_3611;method_15785()Lnet/minecraft/class_3610;named getDefaultStateLnet/minecraft/fluid/Fluid;getDefaultState()Lnet/minecraft/fluid/FluidState;
-
getBucketItem
- Mappings:
Namespace Name Mixin selector official aLdox;a()Lbzw;intermediary method_15774Lnet/minecraft/class_3611;method_15774()Lnet/minecraft/class_1792;named getBucketItemLnet/minecraft/fluid/Fluid;getBucketItem()Lnet/minecraft/item/Item;
-
randomDisplayTick
- Mappings:
Namespace Name Mixin selector official aLdox;a(Lcga;Lgt;Ldoy;Lalu;)Vintermediary method_15776Lnet/minecraft/class_3611;method_15776(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;Lnet/minecraft/class_5819;)Vnamed randomDisplayTickLnet/minecraft/fluid/Fluid;randomDisplayTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/FluidState;Lnet/minecraft/util/math/random/Random;)V
-
onScheduledTick
- Mappings:
Namespace Name Mixin selector official aLdox;a(Lcga;Lgt;Ldoy;)Vintermediary method_15778Lnet/minecraft/class_3611;method_15778(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;)Vnamed onScheduledTickLnet/minecraft/fluid/Fluid;onScheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/FluidState;)V
-
onRandomTick
- Mappings:
Namespace Name Mixin selector official bLdox;b(Lcga;Lgt;Ldoy;Lalu;)Vintermediary method_15792Lnet/minecraft/class_3611;method_15792(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;Lnet/minecraft/class_5819;)Vnamed onRandomTickLnet/minecraft/fluid/Fluid;onRandomTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/FluidState;Lnet/minecraft/util/math/random/Random;)V
-
getParticle
- Mappings:
Namespace Name Mixin selector official iLdox;i()Lim;intermediary method_15787Lnet/minecraft/class_3611;method_15787()Lnet/minecraft/class_2394;named getParticleLnet/minecraft/fluid/Fluid;getParticle()Lnet/minecraft/particle/ParticleEffect;
-
canBeReplacedWith
protected abstract boolean canBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) - Mappings:
Namespace Name Mixin selector official aLdox;a(Ldoy;Lcfg;Lgt;Ldox;Lgy;)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
-
getVelocity
- Mappings:
Namespace Name Mixin selector official aLdox;a(Lcfg;Lgt;Ldoy;)Ldvt;intermediary method_15782Lnet/minecraft/class_3611;method_15782(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;)Lnet/minecraft/class_243;named getVelocityLnet/minecraft/fluid/Fluid;getVelocity(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/FluidState;)Lnet/minecraft/util/math/Vec3d;
-
getTickRate
- Mappings:
Namespace Name Mixin selector official aLdox;a(Lcgd;)Iintermediary method_15789Lnet/minecraft/class_3611;method_15789(Lnet/minecraft/class_4538;)Inamed getTickRateLnet/minecraft/fluid/Fluid;getTickRate(Lnet/minecraft/world/WorldView;)I
-
hasRandomTicks
protected boolean hasRandomTicks()- Mappings:
Namespace Name Mixin selector official jLdox;j()Zintermediary method_15795Lnet/minecraft/class_3611;method_15795()Znamed hasRandomTicksLnet/minecraft/fluid/Fluid;hasRandomTicks()Z
-
isEmpty
protected boolean isEmpty()- Mappings:
Namespace Name Mixin selector official bLdox;b()Zintermediary method_15794Lnet/minecraft/class_3611;method_15794()Znamed isEmptyLnet/minecraft/fluid/Fluid;isEmpty()Z
-
getBlastResistance
protected abstract float getBlastResistance()- Mappings:
Namespace Name Mixin selector official cLdox;c()Fintermediary method_15784Lnet/minecraft/class_3611;method_15784()Fnamed getBlastResistanceLnet/minecraft/fluid/Fluid;getBlastResistance()F
-
getHeight
- Mappings:
Namespace Name Mixin selector official aLdox;a(Ldoy;Lcfg;Lgt;)Fintermediary method_15788Lnet/minecraft/class_3611;method_15788(Lnet/minecraft/class_3610;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Fnamed getHeightLnet/minecraft/fluid/Fluid;getHeight(Lnet/minecraft/fluid/FluidState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)F
-
getHeight
- Mappings:
Namespace Name Mixin selector official aLdox;a(Ldoy;)Fintermediary method_20784Lnet/minecraft/class_3611;method_20784(Lnet/minecraft/class_3610;)Fnamed getHeightLnet/minecraft/fluid/Fluid;getHeight(Lnet/minecraft/fluid/FluidState;)F
-
toBlockState
- Mappings:
Namespace Name Mixin selector official bLdox;b(Ldoy;)Lcur;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;
-
isStill
- Mappings:
Namespace Name Mixin selector official cLdox;c(Ldoy;)Zintermediary method_15793Lnet/minecraft/class_3611;method_15793(Lnet/minecraft/class_3610;)Znamed isStillLnet/minecraft/fluid/Fluid;isStill(Lnet/minecraft/fluid/FluidState;)Z
-
getLevel
- Mappings:
Namespace Name Mixin selector official dLdox;d(Ldoy;)Iintermediary method_15779Lnet/minecraft/class_3611;method_15779(Lnet/minecraft/class_3610;)Inamed getLevelLnet/minecraft/fluid/Fluid;getLevel(Lnet/minecraft/fluid/FluidState;)I
-
matchesType
- Mappings:
Namespace Name Mixin selector official aLdox;a(Ldox;)Zintermediary method_15780Lnet/minecraft/class_3611;method_15780(Lnet/minecraft/class_3611;)Znamed matchesTypeLnet/minecraft/fluid/Fluid;matchesType(Lnet/minecraft/fluid/Fluid;)Z
-
isIn
Deprecated.- Mappings:
Namespace Name Mixin selector official aLdox;a(Lakh;)Zintermediary method_15791Lnet/minecraft/class_3611;method_15791(Lnet/minecraft/class_6862;)Znamed isInLnet/minecraft/fluid/Fluid;isIn(Lnet/minecraft/tag/TagKey;)Z
-
getShape
- Mappings:
Namespace Name Mixin selector official bLdox;b(Ldoy;Lcfg;Lgt;)Ldwm;intermediary method_17775Lnet/minecraft/class_3611;method_17775(Lnet/minecraft/class_3610;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_265;named getShapeLnet/minecraft/fluid/Fluid;getShape(Lnet/minecraft/fluid/FluidState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/shape/VoxelShape;
-
getBucketFillSound
Returns the sound played when filling a bucket with this fluid.- Mappings:
Namespace Name Mixin selector official kLdox;k()Ljava/util/Optional;intermediary method_32359Lnet/minecraft/class_3611;method_32359()Ljava/util/Optional;named getBucketFillSoundLnet/minecraft/fluid/Fluid;getBucketFillSound()Ljava/util/Optional;
-
getRegistryEntry
Deprecated.- Mappings:
Namespace Name Mixin selector official lLdox;l()Lhc$c;intermediary method_40178Lnet/minecraft/class_3611;method_40178()Lnet/minecraft/class_6880$class_6883;named getRegistryEntryLnet/minecraft/fluid/Fluid;getRegistryEntry()Lnet/minecraft/util/registry/RegistryEntry$Reference;
-