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 net.minecraft.world.level.material.Fluid
FLUID_STATE_REGISTRY, stateDefinition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canBeReplacedWith
(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) protected BlockState
createLegacyBlock
(FluidState pState) int
getAmount
(FluidState pState) protected float
getFlow
(BlockGetter pBlockReader, BlockPos pPos, FluidState pFluidState) float
getHeight
(FluidState pState, BlockGetter pLevel, BlockPos pPos) float
getOwnHeight
(FluidState pState) getShape
(FluidState pState, BlockGetter pLevel, BlockPos pPos) int
getTickDelay
(LevelReader pLevel) protected boolean
isEmpty()
boolean
isSource
(FluidState pState) Methods inherited from class net.minecraft.world.level.material.Fluid
animateTick, builtInRegistryHolder, createFluidStateDefinition, defaultFluidState, getDripParticle, getFluidType, getPickupSound, getStateDefinition, is, isRandomlyTicking, isSame, randomTick, registerDefaultState, tick, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.common.extensions.IFluidExtension
canConvertToSource, canExtinguish, canHydrate, getAdjacentBlockPathType, getBlockPathType, getExplosionResistance, move, supportsBoating
-
Constructor Details
-
EmptyFluid
public EmptyFluid()
-
-
Method Details
-
getBucket
-
canBeReplacedWith
public boolean canBeReplacedWith(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) - Specified by:
canBeReplacedWith
in classFluid
-
getFlow
-
getTickDelay
- Specified by:
getTickDelay
in classFluid
-
isEmpty
protected boolean isEmpty() -
getExplosionResistance
protected float getExplosionResistance()- Specified by:
getExplosionResistance
in classFluid
-
getHeight
-
getOwnHeight
- Specified by:
getOwnHeight
in classFluid
-
createLegacyBlock
- Specified by:
createLegacyBlock
in classFluid
-
isSource
-
getAmount
-
getShape
-