Class FluidState

All Implemented Interfaces:
IForgeFluidState

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

  • Constructor Details

    • FluidState

      public FluidState(Fluid p_76149_, com.google.common.collect.ImmutableMap<Property<?>,Comparable<?>> p_76150_, com.mojang.serialization.MapCodec<FluidState> p_76151_)
  • Method Details

    • getType

      public Fluid getType()
    • isSource

      public boolean isSource()
    • isSourceOfType

      public boolean isSourceOfType(Fluid p_164513_)
    • isEmpty

      public boolean isEmpty()
    • getHeight

      public float getHeight(BlockGetter p_76156_, BlockPos p_76157_)
    • getOwnHeight

      public float getOwnHeight()
    • getAmount

      public int getAmount()
    • shouldRenderBackwardUpFace

      public boolean shouldRenderBackwardUpFace(BlockGetter p_76172_, BlockPos p_76173_)
    • tick

      public void tick(Level p_76164_, BlockPos p_76165_)
    • animateTick

      public void animateTick(Level p_230559_, BlockPos p_230560_, RandomSource p_230561_)
    • isRandomlyTicking

      public boolean isRandomlyTicking()
    • randomTick

      public void randomTick(Level p_230563_, BlockPos p_230564_, RandomSource p_230565_)
    • getFlow

      public Vec3 getFlow(BlockGetter p_76180_, BlockPos p_76181_)
    • createLegacyBlock

      public BlockState createLegacyBlock()
    • getDripParticle

      @Nullable public ParticleOptions getDripParticle()
    • is

      public boolean is(TagKey<Fluid> p_205071_)
    • is

      public boolean is(HolderSet<Fluid> p_205073_)
    • is

      public boolean is(Fluid p_192918_)
    • getExplosionResistance

      @Deprecated public float getExplosionResistance()
      Deprecated.
    • canBeReplacedWith

      public boolean canBeReplacedWith(BlockGetter p_76159_, BlockPos p_76160_, Fluid p_76161_, Direction p_76162_)
    • getShape

      public VoxelShape getShape(BlockGetter p_76184_, BlockPos p_76185_)
    • holder

      public Holder<Fluid> holder()
    • getTags

      public Stream<TagKey<Fluid>> getTags()