Class EmptyFluid
java.lang.Object
net.minecraft.world.level.material.Fluid
net.minecraft.world.level.material.EmptyFluid
- All Implemented Interfaces:
IFluidExtension
-
Field Summary
Fields inherited from class Fluid
FLUID_STATE_REGISTRY, stateDefinition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid other, Direction direction) protected BlockStatecreateLegacyBlock(FluidState fluidState) intgetAmount(FluidState fluidState) protected floatgetFlow(BlockGetter level, BlockPos pos, FluidState fluidState) floatgetHeight(FluidState fluidState, BlockGetter level, BlockPos pos) floatgetOwnHeight(FluidState fluidState) getShape(FluidState state, BlockGetter level, BlockPos pos) intgetTickDelay(LevelReader level) protected booleanisEmpty()booleanisSource(FluidState fluidState) Methods inherited from class Fluid
animateTick, builtInRegistryHolder, computeDefaultResource, createFluidStateDefinition, defaultFluidState, entityInside, getAABB, getDripParticle, getFluidType, getPickupSound, getStateDefinition, is, isRandomlyTicking, isSame, randomTick, registerDefaultState, tick, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IFluidExtension
appendHoverText, canConvertToSource, canExtinguish, canHydrate, getAdjacentBlockPathType, getBlockPathType, getExplosionResistance, move, supportsBoating
-
Constructor Details
-
EmptyFluid
public EmptyFluid()
-
-
Method Details
-
getBucket
-
canBeReplacedWith
public boolean canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid other, Direction direction) - Specified by:
canBeReplacedWithin classFluid
-
getFlow
-
getTickDelay
- Specified by:
getTickDelayin classFluid
-
isEmpty
-
getExplosionResistance
protected float getExplosionResistance()- Specified by:
getExplosionResistancein classFluid
-
getHeight
-
getOwnHeight
- Specified by:
getOwnHeightin classFluid
-
createLegacyBlock
- Specified by:
createLegacyBlockin classFluid
-
isSource
-
getAmount
-
getShape
-