public final class FluidState extends State<Fluid,FluidState>
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<FluidState> |
CODEC |
Constructor and Description |
---|
FluidState(Fluid fluid,
ImmutableMap<Property<?>,Comparable<?>> propertiesMap,
com.mojang.serialization.MapCodec<FluidState> mapCodec) |
Modifier and Type | Method and 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) |
contains, createCodec, createWithTable, cycle, get, getEntries, getNext, getProperties, method_28500, toString, with
public static final com.mojang.serialization.Codec<FluidState> CODEC
public FluidState(Fluid fluid, ImmutableMap<Property<?>,Comparable<?>> propertiesMap, com.mojang.serialization.MapCodec<FluidState> mapCodec)
public Fluid getFluid()
public boolean isStill()
public boolean isEmpty()
public float getHeight()
public int getLevel()
@Environment(value=CLIENT) public void randomDisplayTick(World world, BlockPos pos, Random random)
public boolean hasRandomTicks()
public BlockState getBlockState()
@Environment(value=CLIENT) @Nullable public ParticleEffect getParticle()
public float getBlastResistance()
public boolean canBeReplacedWith(BlockView world, BlockPos pos, Fluid fluid, Direction direction)
public VoxelShape getShape(BlockView world, BlockPos pos)