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, setDefaultState
public Item getBucketItem()
getBucketItem
in class Fluid
public boolean canBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction)
canBeReplacedWith
in class Fluid
public Vec3d getVelocity(BlockView world, BlockPos pos, FluidState state)
getVelocity
in class Fluid
public int getTickRate(WorldView world)
getTickRate
in class Fluid
protected float getBlastResistance()
getBlastResistance
in class Fluid
public float getHeight(FluidState state, BlockView world, BlockPos pos)
public float getHeight(FluidState state)
protected BlockState toBlockState(FluidState state)
toBlockState
in class Fluid
public boolean isStill(FluidState state)
public int getLevel(FluidState state)
public VoxelShape getShape(FluidState state, BlockView world, BlockPos pos)