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 p_75926_, BlockGetter p_75927_, BlockPos p_75928_) float
getOwnHeight
(FluidState p_75924_) getShape
(FluidState p_75939_, BlockGetter p_75940_, BlockPos p_75941_) int
getTickDelay
(LevelReader p_75922_) protected boolean
isEmpty()
boolean
isSource
(FluidState pState) Methods inherited from class net.minecraft.world.level.material.Fluid
animateTick, builtInRegistryHolder, createFluidStateDefinition, defaultFluidState, entityInside, getAABB, 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
-