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> mapCodec)
-
Method Summary
Modifier and Type Method Description boolean
canBeReplacedWith(BlockView world, BlockPos pos, Fluid fluid, Direction direction)
float
getBlastResistance()
BlockState
getBlockState()
Fluid
getFluid()
float
getHeight()
float
getHeight(BlockView world, BlockPos pos)
int
getLevel()
ParticleEffect
getParticle()
VoxelShape
getShape(BlockView world, BlockPos pos)
Vec3d
getVelocity(BlockView world, BlockPos pos)
boolean
hasRandomTicks()
boolean
isEmpty()
boolean
isIn(Tag<Fluid> tag)
boolean
isStill()
boolean
method_15756(BlockView world, BlockPos pos)
void
onRandomTick(World world, BlockPos pos, Random random)
void
onScheduledTick(World world, BlockPos pos)
void
randomDisplayTick(World world, BlockPos pos, Random random)
Methods inherited from class net.minecraft.state.State
contains, createCodec, createWithTable, cycle, get, getEntries, getNext, getProperties, method_28500, toString, with
-
Field Details
-
CODEC
-
-
Constructor Details
-
FluidState
public FluidState(Fluid fluid, ImmutableMap<Property<?>,Comparable<?>> propertiesMap, com.mojang.serialization.MapCodec<FluidState> mapCodec)
-
-
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
-