public class EmptyFluid extends Fluid
STATE_IDS, stateManager| Constructor and Description |
|---|
EmptyFluid() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeReplacedWith(FluidState state,
BlockView world,
BlockPos pos,
Fluid fluid,
Direction direction) |
protected float |
getBlastResistance() |
Item |
getBucketItem() |
float |
getHeight(FluidState state) |
float |
getHeight(FluidState state,
BlockView world,
BlockPos pos) |
int |
getLevel(FluidState state) |
VoxelShape |
getShape(FluidState state,
BlockView world,
BlockPos pos) |
int |
getTickRate(WorldView world) |
Vec3d |
getVelocity(BlockView world,
BlockPos pos,
FluidState state) |
protected boolean |
isEmpty() |
boolean |
isStill(FluidState state) |
protected BlockState |
toBlockState(FluidState state) |
appendProperties, getDefaultState, getParticle, getStateManager, hasRandomTicks, isIn, matchesType, onRandomTick, onScheduledTick, randomDisplayTick, setDefaultStatepublic Item getBucketItem()
getBucketItem in class Fluidpublic boolean canBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction)
canBeReplacedWith in class Fluidpublic Vec3d getVelocity(BlockView world, BlockPos pos, FluidState state)
getVelocity in class Fluidpublic int getTickRate(WorldView world)
getTickRate in class Fluidprotected float getBlastResistance()
getBlastResistance in class Fluidpublic float getHeight(FluidState state, BlockView world, BlockPos pos)
public float getHeight(FluidState state)
protected BlockState toBlockState(FluidState state)
toBlockState in class Fluidpublic boolean isStill(FluidState state)
public int getLevel(FluidState state)
public VoxelShape getShape(FluidState state, BlockView world, BlockPos pos)