类 Fluid

  • 直接已知子类:
    EmptyFluid, FlowableFluid

    public abstract class Fluid
    extends Object
    Mappings:
    Namespace Name
    official ddr
    intermediary net/minecraft/class_3611
    named net/minecraft/fluid/Fluid
    • 字段详细资料

      • STATE_IDS

        public static final IdList<FluidState> STATE_IDS
        Mappings:
        Namespace Name Mixin selector
        official c Lddr;c:Lgl;
        intermediary field_15904 Lnet/minecraft/class_3611;field_15904:Lnet/minecraft/class_2361;
        named STATE_IDS Lnet/minecraft/fluid/Fluid;STATE_IDS:Lnet/minecraft/util/collection/IdList;
      • stateManager

        protected final StateManager<Fluid,​FluidState> stateManager
        Mappings:
        Namespace Name Mixin selector
        official d Lddr;d:Lcjs;
        intermediary field_15905 Lnet/minecraft/class_3611;field_15905:Lnet/minecraft/class_2689;
        named stateManager Lnet/minecraft/fluid/Fluid;stateManager:Lnet/minecraft/state/StateManager;
      • defaultState

        private FluidState defaultState
        Mappings:
        Namespace Name Mixin selector
        official a Lddr;a:Ldds;
        intermediary field_15903 Lnet/minecraft/class_3611;field_15903:Lnet/minecraft/class_3610;
        named defaultState Lnet/minecraft/fluid/Fluid;defaultState:Lnet/minecraft/fluid/FluidState;
    • 构造器详细资料

      • Fluid

        protected Fluid()
    • 方法详细资料

      • appendProperties

        protected void appendProperties​(StateManager.Builder<Fluid,​FluidState> builder)
        Mappings:
        Namespace Name Mixin selector
        official a Lddr;a(Lcjs$a;)V
        intermediary method_15775 Lnet/minecraft/class_3611;method_15775(Lnet/minecraft/class_2689$class_2690;)V
        named appendProperties Lnet/minecraft/fluid/Fluid;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
      • getStateManager

        public StateManager<Fluid,​FluidState> getStateManager()
        Mappings:
        Namespace Name Mixin selector
        official g Lddr;g()Lcjs;
        intermediary method_15783 Lnet/minecraft/class_3611;method_15783()Lnet/minecraft/class_2689;
        named getStateManager Lnet/minecraft/fluid/Fluid;getStateManager()Lnet/minecraft/state/StateManager;
      • setDefaultState

        protected final void setDefaultState​(FluidState state)
        Mappings:
        Namespace Name Mixin selector
        official f Lddr;f(Ldds;)V
        intermediary method_15781 Lnet/minecraft/class_3611;method_15781(Lnet/minecraft/class_3610;)V
        named setDefaultState Lnet/minecraft/fluid/Fluid;setDefaultState(Lnet/minecraft/fluid/FluidState;)V
      • getDefaultState

        public final FluidState getDefaultState()
        Mappings:
        Namespace Name Mixin selector
        official h Lddr;h()Ldds;
        intermediary method_15785 Lnet/minecraft/class_3611;method_15785()Lnet/minecraft/class_3610;
        named getDefaultState Lnet/minecraft/fluid/Fluid;getDefaultState()Lnet/minecraft/fluid/FluidState;
      • getBucketItem

        public abstract Item getBucketItem()
        Mappings:
        Namespace Name Mixin selector
        official a Lddr;a()Lbpn;
        intermediary method_15774 Lnet/minecraft/class_3611;method_15774()Lnet/minecraft/class_1792;
        named getBucketItem Lnet/minecraft/fluid/Fluid;getBucketItem()Lnet/minecraft/item/Item;
      • randomDisplayTick

        protected void randomDisplayTick​(World world,
                                         BlockPos pos,
                                         FluidState state,
                                         Random random)
        Mappings:
        Namespace Name Mixin selector
        official a Lddr;a(Lbvr;Lgb;Ldds;Ljava/util/Random;)V
        intermediary method_15776 Lnet/minecraft/class_3611;method_15776(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;Ljava/util/Random;)V
        named randomDisplayTick Lnet/minecraft/fluid/Fluid;randomDisplayTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/FluidState;Ljava/util/Random;)V
      • onScheduledTick

        protected void onScheduledTick​(World world,
                                       BlockPos pos,
                                       FluidState state)
        Mappings:
        Namespace Name Mixin selector
        official a Lddr;a(Lbvr;Lgb;Ldds;)V
        intermediary method_15778 Lnet/minecraft/class_3611;method_15778(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;)V
        named onScheduledTick Lnet/minecraft/fluid/Fluid;onScheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/FluidState;)V
      • onRandomTick

        protected void onRandomTick​(World world,
                                    BlockPos pos,
                                    FluidState state,
                                    Random random)
        Mappings:
        Namespace Name Mixin selector
        official b Lddr;b(Lbvr;Lgb;Ldds;Ljava/util/Random;)V
        intermediary method_15792 Lnet/minecraft/class_3611;method_15792(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;Ljava/util/Random;)V
        named onRandomTick Lnet/minecraft/fluid/Fluid;onRandomTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/FluidState;Ljava/util/Random;)V
      • getParticle

        @Nullable
        protected @Nullable ParticleEffect getParticle()
        Mappings:
        Namespace Name Mixin selector
        official i Lddr;i()Lho;
        intermediary method_15787 Lnet/minecraft/class_3611;method_15787()Lnet/minecraft/class_2394;
        named getParticle Lnet/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 a Lddr;a(Ldds;Lbuv;Lgb;Lddr;Lgg;)Z
        intermediary method_15777 Lnet/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;)Z
        named canBeReplacedWith Lnet/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

        protected abstract Vec3d getVelocity​(BlockView world,
                                             BlockPos pos,
                                             FluidState state)
        Mappings:
        Namespace Name Mixin selector
        official a Lddr;a(Lbuv;Lgb;Ldds;)Ldma;
        intermediary method_15782 Lnet/minecraft/class_3611;method_15782(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;)Lnet/minecraft/class_243;
        named getVelocity Lnet/minecraft/fluid/Fluid;getVelocity(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/FluidState;)Lnet/minecraft/util/math/Vec3d;
      • getTickRate

        public abstract int getTickRate​(WorldView world)
        Mappings:
        Namespace Name Mixin selector
        official a Lddr;a(Lbvu;)I
        intermediary method_15789 Lnet/minecraft/class_3611;method_15789(Lnet/minecraft/class_4538;)I
        named getTickRate Lnet/minecraft/fluid/Fluid;getTickRate(Lnet/minecraft/world/WorldView;)I
      • hasRandomTicks

        protected boolean hasRandomTicks()
        Mappings:
        Namespace Name Mixin selector
        official j Lddr;j()Z
        intermediary method_15795 Lnet/minecraft/class_3611;method_15795()Z
        named hasRandomTicks Lnet/minecraft/fluid/Fluid;hasRandomTicks()Z
      • isEmpty

        protected boolean isEmpty()
        Mappings:
        Namespace Name Mixin selector
        official b Lddr;b()Z
        intermediary method_15794 Lnet/minecraft/class_3611;method_15794()Z
        named isEmpty Lnet/minecraft/fluid/Fluid;isEmpty()Z
      • getBlastResistance

        protected abstract float getBlastResistance()
        Mappings:
        Namespace Name Mixin selector
        official c Lddr;c()F
        intermediary method_15784 Lnet/minecraft/class_3611;method_15784()F
        named getBlastResistance Lnet/minecraft/fluid/Fluid;getBlastResistance()F
      • getHeight

        public abstract float getHeight​(FluidState state,
                                        BlockView world,
                                        BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official a Lddr;a(Ldds;Lbuv;Lgb;)F
        intermediary method_15788 Lnet/minecraft/class_3611;method_15788(Lnet/minecraft/class_3610;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)F
        named getHeight Lnet/minecraft/fluid/Fluid;getHeight(Lnet/minecraft/fluid/FluidState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)F
      • getHeight

        public abstract float getHeight​(FluidState state)
        Mappings:
        Namespace Name Mixin selector
        official a Lddr;a(Ldds;)F
        intermediary method_20784 Lnet/minecraft/class_3611;method_20784(Lnet/minecraft/class_3610;)F
        named getHeight Lnet/minecraft/fluid/Fluid;getHeight(Lnet/minecraft/fluid/FluidState;)F
      • toBlockState

        protected abstract BlockState toBlockState​(FluidState state)
        Mappings:
        Namespace Name Mixin selector
        official b Lddr;b(Ldds;)Lcjr;
        intermediary method_15790 Lnet/minecraft/class_3611;method_15790(Lnet/minecraft/class_3610;)Lnet/minecraft/class_2680;
        named toBlockState Lnet/minecraft/fluid/Fluid;toBlockState(Lnet/minecraft/fluid/FluidState;)Lnet/minecraft/block/BlockState;
      • isStill

        public abstract boolean isStill​(FluidState state)
        Mappings:
        Namespace Name Mixin selector
        official c Lddr;c(Ldds;)Z
        intermediary method_15793 Lnet/minecraft/class_3611;method_15793(Lnet/minecraft/class_3610;)Z
        named isStill Lnet/minecraft/fluid/Fluid;isStill(Lnet/minecraft/fluid/FluidState;)Z
      • getLevel

        public abstract int getLevel​(FluidState state)
        Mappings:
        Namespace Name Mixin selector
        official d Lddr;d(Ldds;)I
        intermediary method_15779 Lnet/minecraft/class_3611;method_15779(Lnet/minecraft/class_3610;)I
        named getLevel Lnet/minecraft/fluid/Fluid;getLevel(Lnet/minecraft/fluid/FluidState;)I
      • matchesType

        public boolean matchesType​(Fluid fluid)
        Mappings:
        Namespace Name Mixin selector
        official a Lddr;a(Lddr;)Z
        intermediary method_15780 Lnet/minecraft/class_3611;method_15780(Lnet/minecraft/class_3611;)Z
        named matchesType Lnet/minecraft/fluid/Fluid;matchesType(Lnet/minecraft/fluid/Fluid;)Z
      • isIn

        public boolean isIn​(Tag<Fluid> tag)
        Mappings:
        Namespace Name Mixin selector
        official a Lddr;a(Lafs;)Z
        intermediary method_15791 Lnet/minecraft/class_3611;method_15791(Lnet/minecraft/class_3494;)Z
        named isIn Lnet/minecraft/fluid/Fluid;isIn(Lnet/minecraft/tag/Tag;)Z
      • getShape

        public abstract VoxelShape getShape​(FluidState state,
                                            BlockView world,
                                            BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official b Lddr;b(Ldds;Lbuv;Lgb;)Ldmt;
        intermediary method_17775 Lnet/minecraft/class_3611;method_17775(Lnet/minecraft/class_3610;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_265;
        named getShape Lnet/minecraft/fluid/Fluid;getShape(Lnet/minecraft/fluid/FluidState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/shape/VoxelShape;
      • getBucketFillSound

        public Optional<SoundEvent> getBucketFillSound()
        Returns the sound played when filling a bucket with this fluid.
        Mappings:
        Namespace Name Mixin selector
        official k Lddr;k()Ljava/util/Optional;
        intermediary method_32359 Lnet/minecraft/class_3611;method_32359()Ljava/util/Optional;
        named getBucketFillSound Lnet/minecraft/fluid/Fluid;getBucketFillSound()Ljava/util/Optional;