Class FluidState

java.lang.Object
net.minecraft.state.State<Fluid,​FluidState>
net.minecraft.fluid.FluidState

public final class FluidState
extends State<Fluid,​FluidState>
  • Field Details

    • CODEC

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

  • Method Details

    • getFluid

      public Fluid getFluid()
    • isStill

      public boolean isStill()
    • isEmpty

      public boolean isEmpty()
    • getHeight

      public float getHeight​(BlockView world, BlockPos pos)
    • getHeight

      public float getHeight()
    • getLevel

      public int getLevel()
    • method_15756

      @Environment(CLIENT) public boolean method_15756​(BlockView world, BlockPos pos)
    • onScheduledTick

      public void onScheduledTick​(World world, BlockPos pos)
    • randomDisplayTick

      @Environment(CLIENT) public void randomDisplayTick​(World world, BlockPos pos, Random random)
    • hasRandomTicks

      public boolean hasRandomTicks()
    • onRandomTick

      public void onRandomTick​(World world, BlockPos pos, Random random)
    • getVelocity

      public Vec3d getVelocity​(BlockView world, BlockPos pos)
    • getBlockState

      public BlockState getBlockState()
    • getParticle

      @Environment(CLIENT) @Nullable public ParticleEffect getParticle()
    • isIn

      public boolean isIn​(Tag<Fluid> tag)
    • getBlastResistance

      public float getBlastResistance()
    • canBeReplacedWith

      public boolean canBeReplacedWith​(BlockView world, BlockPos pos, Fluid fluid, Direction direction)
    • getShape

      public VoxelShape getShape​(BlockView world, BlockPos pos)