Package net.minecraft.fluid
Class EmptyFluid
java.lang.Object
net.minecraft.fluid.Fluid
net.minecraft.fluid.EmptyFluid
public class EmptyFluid extends Fluid
-
Field Summary
Fields inherited from class net.minecraft.fluid.Fluid
STATE_IDS, stateManager
-
Constructor Summary
Constructors Constructor Description EmptyFluid()
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class net.minecraft.fluid.Fluid
appendProperties, getDefaultState, getParticle, getStateManager, hasRandomTicks, isIn, matchesType, onRandomTick, onScheduledTick, randomDisplayTick, setDefaultState
-
Constructor Details
-
EmptyFluid
public EmptyFluid()
-
-
Method Details
-
getBucketItem
- Specified by:
getBucketItem
in classFluid
-
canBeReplacedWith
public boolean canBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction)- Specified by:
canBeReplacedWith
in classFluid
-
getVelocity
- Specified by:
getVelocity
in classFluid
-
getTickRate
- Specified by:
getTickRate
in classFluid
-
isEmpty
protected boolean isEmpty() -
getBlastResistance
protected float getBlastResistance()- Specified by:
getBlastResistance
in classFluid
-
getHeight
-
getHeight
-
toBlockState
- Specified by:
toBlockState
in classFluid
-
isStill
-
getLevel
-
getShape
-