Class FluidState

All Implemented Interfaces:
IForgeFluidState

public final class FluidState extends StateHolder<Fluid,FluidState> implements IForgeFluidState
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<FluidState> CODEC
  • Constructor Details

    • FluidState

      public FluidState(Fluid p_i232145_1_, com.google.common.collect.ImmutableMap<Property<?>,Comparable<?>> p_i232145_2_, com.mojang.serialization.MapCodec<FluidState> p_i232145_3_)
  • Method Details

    • getType

      public Fluid getType()
    • isSource

      public boolean isSource()
    • isEmpty

      public boolean isEmpty()
    • getHeight

      public float getHeight(IBlockReader p_215679_1_, BlockPos p_215679_2_)
    • getOwnHeight

      public float getOwnHeight()
    • getAmount

      public int getAmount()
    • shouldRenderBackwardUpFace

      public boolean shouldRenderBackwardUpFace(IBlockReader p_205586_1_, BlockPos p_205586_2_)
    • tick

      public void tick(World p_206880_1_, BlockPos p_206880_2_)
    • animateTick

      public void animateTick(World p_206881_1_, BlockPos p_206881_2_, Random p_206881_3_)
    • isRandomlyTicking

      public boolean isRandomlyTicking()
    • randomTick

      public void randomTick(World p_206891_1_, BlockPos p_206891_2_, Random p_206891_3_)
    • getFlow

      public Vector3d getFlow(IBlockReader p_215673_1_, BlockPos p_215673_2_)
    • createLegacyBlock

      public BlockState createLegacyBlock()
    • getDripParticle

      @Nullable public IParticleData getDripParticle()
    • is

      public boolean is(ITag<Fluid> p_206884_1_)
    • getExplosionResistance

      @Deprecated public float getExplosionResistance()
      Deprecated.
    • canBeReplacedWith

      public boolean canBeReplacedWith(IBlockReader p_215677_1_, BlockPos p_215677_2_, Fluid p_215677_3_, Direction p_215677_4_)
    • getShape

      public VoxelShape getShape(IBlockReader p_215676_1_, BlockPos p_215676_2_)