Class Fluid

java.lang.Object
net.minecraft.fluid.Fluid
Direct Known Subclasses:
EmptyFluid, FlowableFluid

public abstract class Fluid extends Object
Mappings:
Namespace Name
named net/minecraft/fluid/Fluid
intermediary net/minecraft/class_3611
official etv
  • Field Details

    • STATE_IDS

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

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

      private FluidState defaultState
      Mappings:
      Namespace Name Mixin selector
      named defaultState Lnet/minecraft/fluid/Fluid;defaultState:Lnet/minecraft/fluid/FluidState;
      intermediary field_15903 Lnet/minecraft/class_3611;field_15903:Lnet/minecraft/class_3610;
      official a Letv;a:Letw;
    • registryEntry

      private final RegistryEntry.Reference<Fluid> registryEntry
      Mappings:
      Namespace Name Mixin selector
      named registryEntry Lnet/minecraft/fluid/Fluid;registryEntry:Lnet/minecraft/registry/entry/RegistryEntry$Reference;
      intermediary field_36431 Lnet/minecraft/class_3611;field_36431:Lnet/minecraft/class_6880$class_6883;
      official b Letv;b:Ljq$c;
  • Constructor Details

    • Fluid

      protected Fluid()
  • Method Details

    • appendProperties

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

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

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

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

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

      protected void randomDisplayTick(World world, BlockPos pos, FluidState state, Random random)
      Mappings:
      Namespace Name Mixin selector
      named randomDisplayTick Lnet/minecraft/fluid/Fluid;randomDisplayTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/FluidState;Lnet/minecraft/util/math/random/Random;)V
      intermediary method_15776 Lnet/minecraft/class_3611;method_15776(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;Lnet/minecraft/class_5819;)V
      official a Letv;a(Ldhh;Ljh;Letw;Lbam;)V
    • onScheduledTick

      protected void onScheduledTick(ServerWorld world, BlockPos pos, BlockState blockState, FluidState fluidState)
      Mappings:
      Namespace Name Mixin selector
      named onScheduledTick Lnet/minecraft/fluid/Fluid;onScheduledTick(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/FluidState;)V
      intermediary method_15778 Lnet/minecraft/class_3611;method_15778(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;)V
      official b Letv;b(Lash;Ljh;Ldxu;Letw;)V
    • onRandomTick

      protected void onRandomTick(ServerWorld world, BlockPos pos, FluidState state, Random random)
      Mappings:
      Namespace Name Mixin selector
      named onRandomTick Lnet/minecraft/fluid/Fluid;onRandomTick(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/FluidState;Lnet/minecraft/util/math/random/Random;)V
      intermediary method_15792 Lnet/minecraft/class_3611;method_15792(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;Lnet/minecraft/class_5819;)V
      official a Letv;a(Lash;Ljh;Letw;Lbam;)V
    • getParticle

      @Nullable protected @Nullable ParticleEffect getParticle()
      Mappings:
      Namespace Name Mixin selector
      named getParticle Lnet/minecraft/fluid/Fluid;getParticle()Lnet/minecraft/particle/ParticleEffect;
      intermediary method_15787 Lnet/minecraft/class_3611;method_15787()Lnet/minecraft/class_2394;
      official h Letv;h()Llq;
    • canBeReplacedWith

      protected abstract boolean canBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      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
      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
      official a Letv;a(Letw;Ldgm;Ljh;Letv;Ljm;)Z
    • getVelocity

      protected abstract Vec3d getVelocity(BlockView world, BlockPos pos, FluidState state)
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a Letv;a(Ldgm;Ljh;Letw;)Lfbx;
    • getTickRate

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

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

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

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

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

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

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

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

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

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

      @Deprecated public boolean isIn(TagKey<Fluid> tag)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      named isIn Lnet/minecraft/fluid/Fluid;isIn(Lnet/minecraft/registry/tag/TagKey;)Z
      intermediary method_15791 Lnet/minecraft/class_3611;method_15791(Lnet/minecraft/class_6862;)Z
      official a Letv;a(Layk;)Z
    • getShape

      public abstract VoxelShape getShape(FluidState state, BlockView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official b Letv;b(Letw;Ldgm;Ljh;)Lfcr;
    • getBucketFillSound

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

      @Deprecated public RegistryEntry.Reference<Fluid> getRegistryEntry()
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      named getRegistryEntry Lnet/minecraft/fluid/Fluid;getRegistryEntry()Lnet/minecraft/registry/entry/RegistryEntry$Reference;
      intermediary method_40178 Lnet/minecraft/class_3611;method_40178()Lnet/minecraft/class_6880$class_6883;
      official k Letv;k()Ljq$c;