Package net.minecraft.fluid
Class FluidState
public final class FluidState extends State<Fluid,FluidState>
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<FluidState>CODEC -
Constructor Summary
Constructors Constructor Description FluidState(Fluid fluid, ImmutableMap<Property<?>,Comparable<?>> propertiesMap, com.mojang.serialization.MapCodec<FluidState> codec) -
Method Summary
Modifier and Type Method Description booleancanBeReplacedWith(BlockView world, BlockPos pos, Fluid fluid, Direction direction)floatgetBlastResistance()BlockStategetBlockState()FluidgetFluid()floatgetHeight()floatgetHeight(BlockView world, BlockPos pos)intgetLevel()ParticleEffectgetParticle()VoxelShapegetShape(BlockView world, BlockPos pos)Vec3dgetVelocity(BlockView world, BlockPos pos)booleanhasRandomTicks()booleanisEmpty()booleanisIn(Tag<Fluid> tag)booleanisStill()booleanmethod_15756(BlockView world, BlockPos pos)voidonRandomTick(World world, BlockPos pos, Random random)voidonScheduledTick(World world, BlockPos pos)voidrandomDisplayTick(World world, BlockPos pos, Random random)Methods inherited from class net.minecraft.state.State
contains, createCodec, createWithTable, cycle, get, getEntries, getNext, getOrEmpty, getProperties, toString, with
-
Field Details
-
CODEC
-
-
Constructor Details
-
FluidState
public FluidState(Fluid fluid, ImmutableMap<Property<?>,Comparable<?>> propertiesMap, com.mojang.serialization.MapCodec<FluidState> codec)
-
-
Method Details
-
getFluid
-
isStill
public boolean isStill() -
isEmpty
public boolean isEmpty() -
getHeight
-
getHeight
public float getHeight() -
getLevel
public int getLevel() -
method_15756
-
onScheduledTick
-
randomDisplayTick
-
hasRandomTicks
public boolean hasRandomTicks() -
onRandomTick
-
getVelocity
-
getBlockState
-
getParticle
-
isIn
-
getBlastResistance
public float getBlastResistance() -
canBeReplacedWith
-
getShape
-