Class FluidState

    • Field Detail

      • CODEC

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

      • FluidState

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

      • getType

        public Fluid getType()
      • isSource

        public boolean isSource()
      • isEmpty

        public boolean isEmpty()
      • 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_,
                                java.util.Random p_206881_3_)
      • isRandomlyTicking

        public boolean isRandomlyTicking()
      • randomTick

        public void randomTick​(World p_206891_1_,
                               BlockPos p_206891_2_,
                               java.util.Random p_206891_3_)
      • createLegacyBlock

        public BlockState createLegacyBlock()
      • getDripParticle

        @Nullable
        public IParticleData getDripParticle()
      • is

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

        @Deprecated
        public float getExplosionResistance()
        Deprecated.