Class FluidState

java.lang.Object
net.minecraft.world.level.block.state.StateHolder<Fluid,​FluidState>
net.minecraft.world.level.material.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_76167_, BlockPos p_76168_, Random p_76169_)
    • isRandomlyTicking

      public boolean isRandomlyTicking()
    • randomTick

      public void randomTick(Level p_76175_, BlockPos p_76176_, Random p_76177_)
    • getFlow

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

      public BlockState createLegacyBlock()
    • getDripParticle

      @Nullable public ParticleOptions getDripParticle()
    • is

      public boolean is(Tag<Fluid> p_76154_)
    • 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_)