Class FlowableFluid

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

public abstract class FlowableFluid
extends Fluid
Represents a fluid which can flow.
Mappings:
Namespace Name
official daj
intermediary net/minecraft/class_3609
named net/minecraft/fluid/FlowableFluid
  • Field Details

    • FALLING

      public static final BooleanProperty FALLING
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a:Lcik;
      intermediary field_15902 Lnet/minecraft/class_3609;field_15902:Lnet/minecraft/class_2746;
      named FALLING Lnet/minecraft/fluid/FlowableFluid;FALLING:Lnet/minecraft/state/property/BooleanProperty;
    • LEVEL

      public static final IntProperty LEVEL
      Mappings:
      Namespace Name Mixin selector
      official b Ldaj;b:Lcit;
      intermediary field_15900 Lnet/minecraft/class_3609;field_15900:Lnet/minecraft/class_2758;
      named LEVEL Lnet/minecraft/fluid/FlowableFluid;LEVEL:Lnet/minecraft/state/property/IntProperty;
    • field_15901

      private static final ThreadLocal<Object2ByteLinkedOpenHashMap<Block.NeighborGroup>> field_15901
      Mappings:
      Namespace Name Mixin selector
      official e Ldaj;e:Ljava/lang/ThreadLocal;
      intermediary field_15901 Lnet/minecraft/class_3609;field_15901:Ljava/lang/ThreadLocal;
      named field_15901 Lnet/minecraft/fluid/FlowableFluid;field_15901:Ljava/lang/ThreadLocal;
    • shapeCache

      private final Map<FluidState,​VoxelShape> shapeCache
      Mappings:
      Namespace Name Mixin selector
      official f Ldaj;f:Ljava/util/Map;
      intermediary field_17587 Lnet/minecraft/class_3609;field_17587:Ljava/util/Map;
      named shapeCache Lnet/minecraft/fluid/FlowableFluid;shapeCache:Ljava/util/Map;
  • Constructor Details

    • FlowableFluid

      public FlowableFluid()
  • Method Details

    • appendProperties

      protected void appendProperties​(StateManager.Builder<Fluid,​FluidState> builder)
      Overrides:
      appendProperties in class Fluid
      Mappings:
      Namespace Name Mixin selector
      official a Ldak;a(Lchu$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
    • getVelocity

      public Vec3d getVelocity​(BlockView world, BlockPos pos, FluidState state)
      Specified by:
      getVelocity in class Fluid
      Mappings:
      Namespace Name Mixin selector
      official a Ldak;a(Lbsz;Lfx;Ldal;)Ldiu;
      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;
    • method_15748

      private boolean method_15748​(FluidState state)
      Mappings:
      Namespace Name Mixin selector
      official g Ldaj;g(Ldal;)Z
      intermediary method_15748 Lnet/minecraft/class_3609;method_15748(Lnet/minecraft/class_3610;)Z
      named method_15748 Lnet/minecraft/fluid/FlowableFluid;method_15748(Lnet/minecraft/fluid/FluidState;)Z
    • method_15749

      protected boolean method_15749​(BlockView world, BlockPos pos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(Lbsz;Lfx;Lgc;)Z
      intermediary method_15749 Lnet/minecraft/class_3609;method_15749(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Z
      named method_15749 Lnet/minecraft/fluid/FlowableFluid;method_15749(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • tryFlow

      protected void tryFlow​(WorldAccess world, BlockPos fluidPos, FluidState state)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(Lbtw;Lfx;Ldal;)V
      intermediary method_15725 Lnet/minecraft/class_3609;method_15725(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;)V
      named tryFlow Lnet/minecraft/fluid/FlowableFluid;tryFlow(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/FluidState;)V
    • method_15744

      private void method_15744​(WorldAccess world, BlockPos pos, FluidState fluidState, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(Lbtw;Lfx;Ldal;Lcht;)V
      intermediary method_15744 Lnet/minecraft/class_3609;method_15744(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;Lnet/minecraft/class_2680;)V
      named method_15744 Lnet/minecraft/fluid/FlowableFluid;method_15744(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/FluidState;Lnet/minecraft/block/BlockState;)V
    • getUpdatedState

      protected FluidState getUpdatedState​(WorldView world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(Lbty;Lfx;Lcht;)Ldal;
      intermediary method_15727 Lnet/minecraft/class_3609;method_15727(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;
      named getUpdatedState Lnet/minecraft/fluid/FlowableFluid;getUpdatedState(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;
    • receivesFlow

      private boolean receivesFlow​(Direction face, BlockView world, BlockPos pos, BlockState state, BlockPos fromPos, BlockState fromState)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(Lgc;Lbsz;Lfx;Lcht;Lfx;Lcht;)Z
      intermediary method_15732 Lnet/minecraft/class_3609;method_15732(Lnet/minecraft/class_2350;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
      named receivesFlow Lnet/minecraft/fluid/FlowableFluid;receivesFlow(Lnet/minecraft/util/math/Direction;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • getFlowing

      public abstract Fluid getFlowing()
      Mappings:
      Namespace Name Mixin selector
      official d Ldaj;d()Ldak;
      intermediary method_15750 Lnet/minecraft/class_3609;method_15750()Lnet/minecraft/class_3611;
      named getFlowing Lnet/minecraft/fluid/FlowableFluid;getFlowing()Lnet/minecraft/fluid/Fluid;
    • getFlowing

      public FluidState getFlowing​(int level, boolean falling)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(IZ)Ldal;
      intermediary method_15728 Lnet/minecraft/class_3609;method_15728(IZ)Lnet/minecraft/class_3610;
      named getFlowing Lnet/minecraft/fluid/FlowableFluid;getFlowing(IZ)Lnet/minecraft/fluid/FluidState;
    • getStill

      public abstract Fluid getStill()
      Mappings:
      Namespace Name Mixin selector
      official e Ldaj;e()Ldak;
      intermediary method_15751 Lnet/minecraft/class_3609;method_15751()Lnet/minecraft/class_3611;
      named getStill Lnet/minecraft/fluid/FlowableFluid;getStill()Lnet/minecraft/fluid/Fluid;
    • getStill

      public FluidState getStill​(boolean falling)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(Z)Ldal;
      intermediary method_15729 Lnet/minecraft/class_3609;method_15729(Z)Lnet/minecraft/class_3610;
      named getStill Lnet/minecraft/fluid/FlowableFluid;getStill(Z)Lnet/minecraft/fluid/FluidState;
    • isInfinite

      protected abstract boolean isInfinite()
      Mappings:
      Namespace Name Mixin selector
      official f Ldaj;f()Z
      intermediary method_15737 Lnet/minecraft/class_3609;method_15737()Z
      named isInfinite Lnet/minecraft/fluid/FlowableFluid;isInfinite()Z
    • flow

      protected void flow​(WorldAccess world, BlockPos pos, BlockState state, Direction direction, FluidState fluidState)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(Lbtw;Lfx;Lcht;Lgc;Ldal;)V
      intermediary method_15745 Lnet/minecraft/class_3609;method_15745(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_3610;)V
      named flow Lnet/minecraft/fluid/FlowableFluid;flow(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/fluid/FluidState;)V
    • beforeBreakingBlock

      protected abstract void beforeBreakingBlock​(WorldAccess world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(Lbtw;Lfx;Lcht;)V
      intermediary method_15730 Lnet/minecraft/class_3609;method_15730(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named beforeBreakingBlock Lnet/minecraft/fluid/FlowableFluid;beforeBreakingBlock(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • method_15747

      private static short method_15747​(BlockPos blockPos, BlockPos blockPos2)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(Lfx;Lfx;)S
      intermediary method_15747 Lnet/minecraft/class_3609;method_15747(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)S
      named method_15747 Lnet/minecraft/fluid/FlowableFluid;method_15747(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)S
    • method_15742

      protected int method_15742​(WorldView world, BlockPos blockPos, int int2, Direction direction, BlockState blockState, BlockPos blockPos2, Short2ObjectMap<com.mojang.datafixers.util.Pair<BlockState,​FluidState>> short2ObjectMap, Short2BooleanMap short2BooleanMap)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(Lbty;Lfx;ILgc;Lcht;Lfx;Lit/unimi/dsi/fastutil/shorts/Short2ObjectMap;Lit/unimi/dsi/fastutil/shorts/Short2BooleanMap;)I
      intermediary method_15742 Lnet/minecraft/class_3609;method_15742(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;ILnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lit/unimi/dsi/fastutil/shorts/Short2ObjectMap;Lit/unimi/dsi/fastutil/shorts/Short2BooleanMap;)I
      named method_15742 Lnet/minecraft/fluid/FlowableFluid;method_15742(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lit/unimi/dsi/fastutil/shorts/Short2ObjectMap;Lit/unimi/dsi/fastutil/shorts/Short2BooleanMap;)I
    • method_15736

      private boolean method_15736​(BlockView world, Fluid fluid, BlockPos pos, BlockState state, BlockPos fromPos, BlockState fromState)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(Lbsz;Ldak;Lfx;Lcht;Lfx;Lcht;)Z
      intermediary method_15736 Lnet/minecraft/class_3609;method_15736(Lnet/minecraft/class_1922;Lnet/minecraft/class_3611;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
      named method_15736 Lnet/minecraft/fluid/FlowableFluid;method_15736(Lnet/minecraft/world/BlockView;Lnet/minecraft/fluid/Fluid;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • canFlowThrough

      private boolean canFlowThrough​(BlockView world, Fluid fluid, BlockPos pos, BlockState state, Direction face, BlockPos fromPos, BlockState fromState, FluidState fluidState)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(Lbsz;Ldak;Lfx;Lcht;Lgc;Lfx;Lcht;Ldal;)Z
      intermediary method_15746 Lnet/minecraft/class_3609;method_15746(Lnet/minecraft/class_1922;Lnet/minecraft/class_3611;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;)Z
      named canFlowThrough Lnet/minecraft/fluid/FlowableFluid;canFlowThrough(Lnet/minecraft/world/BlockView;Lnet/minecraft/fluid/Fluid;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/FluidState;)Z
    • isMatchingAndStill

      private boolean isMatchingAndStill​(FluidState state)
      Mappings:
      Namespace Name Mixin selector
      official h Ldaj;h(Ldal;)Z
      intermediary method_15752 Lnet/minecraft/class_3609;method_15752(Lnet/minecraft/class_3610;)Z
      named isMatchingAndStill Lnet/minecraft/fluid/FlowableFluid;isMatchingAndStill(Lnet/minecraft/fluid/FluidState;)Z
    • getFlowSpeed

      protected abstract int getFlowSpeed​(WorldView world)
      Mappings:
      Namespace Name Mixin selector
      official b Ldaj;b(Lbty;)I
      intermediary method_15733 Lnet/minecraft/class_3609;method_15733(Lnet/minecraft/class_4538;)I
      named getFlowSpeed Lnet/minecraft/fluid/FlowableFluid;getFlowSpeed(Lnet/minecraft/world/WorldView;)I
    • method_15740

      private int method_15740​(WorldView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(Lbty;Lfx;)I
      intermediary method_15740 Lnet/minecraft/class_3609;method_15740(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)I
      named method_15740 Lnet/minecraft/fluid/FlowableFluid;method_15740(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)I
    • getSpread

      protected Map<Direction,​FluidState> getSpread​(WorldView world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official b Ldaj;b(Lbty;Lfx;Lcht;)Ljava/util/Map;
      intermediary method_15726 Lnet/minecraft/class_3609;method_15726(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Ljava/util/Map;
      named getSpread Lnet/minecraft/fluid/FlowableFluid;getSpread(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Ljava/util/Map;
    • canFill

      private boolean canFill​(BlockView world, BlockPos pos, BlockState state, Fluid fluid)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(Lbsz;Lfx;Lcht;Ldak;)Z
      intermediary method_15754 Lnet/minecraft/class_3609;method_15754(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3611;)Z
      named canFill Lnet/minecraft/fluid/FlowableFluid;canFill(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/Fluid;)Z
    • canFlow

      protected boolean canFlow​(BlockView world, BlockPos fluidPos, BlockState fluidBlockState, Direction flowDirection, BlockPos flowTo, BlockState flowToBlockState, FluidState fluidState, Fluid fluid)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(Lbsz;Lfx;Lcht;Lgc;Lfx;Lcht;Ldal;Ldak;)Z
      intermediary method_15738 Lnet/minecraft/class_3609;method_15738(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;Lnet/minecraft/class_3611;)Z
      named canFlow Lnet/minecraft/fluid/FlowableFluid;canFlow(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/FluidState;Lnet/minecraft/fluid/Fluid;)Z
    • getLevelDecreasePerBlock

      protected abstract int getLevelDecreasePerBlock​(WorldView world)
      Mappings:
      Namespace Name Mixin selector
      official c Ldaj;c(Lbty;)I
      intermediary method_15739 Lnet/minecraft/class_3609;method_15739(Lnet/minecraft/class_4538;)I
      named getLevelDecreasePerBlock Lnet/minecraft/fluid/FlowableFluid;getLevelDecreasePerBlock(Lnet/minecraft/world/WorldView;)I
    • getNextTickDelay

      protected int getNextTickDelay​(World world, BlockPos pos, FluidState oldState, FluidState newState)
      Mappings:
      Namespace Name Mixin selector
      official a Ldaj;a(Lbtv;Lfx;Ldal;Ldal;)I
      intermediary method_15753 Lnet/minecraft/class_3609;method_15753(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;Lnet/minecraft/class_3610;)I
      named getNextTickDelay Lnet/minecraft/fluid/FlowableFluid;getNextTickDelay(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/FluidState;Lnet/minecraft/fluid/FluidState;)I
    • onScheduledTick

      public void onScheduledTick​(World world, BlockPos pos, FluidState state)
      Overrides:
      onScheduledTick in class Fluid
      Mappings:
      Namespace Name Mixin selector
      official a Ldak;a(Lbtv;Lfx;Ldal;)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
    • getBlockStateLevel

      protected static int getBlockStateLevel​(FluidState state)
      Mappings:
      Namespace Name Mixin selector
      official e Ldaj;e(Ldal;)I
      intermediary method_15741 Lnet/minecraft/class_3609;method_15741(Lnet/minecraft/class_3610;)I
      named getBlockStateLevel Lnet/minecraft/fluid/FlowableFluid;getBlockStateLevel(Lnet/minecraft/fluid/FluidState;)I
    • isFluidAboveEqual

      private static boolean isFluidAboveEqual​(FluidState state, BlockView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official c Ldaj;c(Ldal;Lbsz;Lfx;)Z
      intermediary method_17774 Lnet/minecraft/class_3609;method_17774(Lnet/minecraft/class_3610;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z
      named isFluidAboveEqual Lnet/minecraft/fluid/FlowableFluid;isFluidAboveEqual(Lnet/minecraft/fluid/FluidState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
    • getHeight

      public float getHeight​(FluidState state, BlockView world, BlockPos pos)
      Specified by:
      getHeight in class Fluid
      Mappings:
      Namespace Name Mixin selector
      official a Ldak;a(Ldal;Lbsz;Lfx;)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 float getHeight​(FluidState state)
      Specified by:
      getHeight in class Fluid
      Mappings:
      Namespace Name Mixin selector
      official a Ldak;a(Ldal;)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
    • getShape

      public VoxelShape getShape​(FluidState state, BlockView world, BlockPos pos)
      Specified by:
      getShape in class Fluid
      Mappings:
      Namespace Name Mixin selector
      official b Ldak;b(Ldal;Lbsz;Lfx;)Ldjn;
      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;