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 booleancanBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction)protected floatgetBlastResistance()ItemgetBucketItem()floatgetHeight(FluidState state)floatgetHeight(FluidState state, BlockView world, BlockPos pos)intgetLevel(FluidState state)VoxelShapegetShape(FluidState state, BlockView world, BlockPos pos)intgetTickRate(WorldView world)Vec3dgetVelocity(BlockView world, BlockPos pos, FluidState state)protected booleanisEmpty()booleanisStill(FluidState state)protected BlockStatetoBlockState(FluidState state)Methods inherited from class net.minecraft.fluid.Fluid
appendProperties, getDefaultState, getFillSound, getParticle, getStateManager, hasRandomTicks, isIn, matchesType, onRandomTick, onScheduledTick, randomDisplayTick, setDefaultState
-
Constructor Details
-
EmptyFluid
public EmptyFluid()
-
-
Method Details
-
getBucketItem
- Specified by:
getBucketItemin classFluid
-
canBeReplacedWith
public boolean canBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction)- Specified by:
canBeReplacedWithin classFluid
-
getVelocity
- Specified by:
getVelocityin classFluid
-
getTickRate
- Specified by:
getTickRatein classFluid
-
isEmpty
protected boolean isEmpty() -
getBlastResistance
protected float getBlastResistance()- Specified by:
getBlastResistancein classFluid
-
getHeight
-
getHeight
-
toBlockState
- Specified by:
toBlockStatein classFluid
-
isStill
-
getLevel
-
getShape
-