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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canBeReplacedWith
(FluidState p_75930_, BlockGetter p_75931_, BlockPos p_75932_, Fluid p_75933_, Direction p_75934_) protected BlockState
createLegacyBlock
(FluidState p_75937_) int
getAmount
(FluidState p_75946_) protected float
getFlow
(BlockGetter p_75918_, BlockPos p_75919_, FluidState p_75920_) 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 p_75944_) Methods inherited from class net.minecraft.world.level.material.Fluid
animateTick, builtInRegistryHolder, createFluidStateDefinition, defaultFluidState, getDripParticle, getFluidType, getPickupSound, getStateDefinition, is, isRandomlyTicking, isSame, randomTick, registerDefaultState, tick
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 p_75930_, BlockGetter p_75931_, BlockPos p_75932_, Fluid p_75933_, Direction p_75934_) - 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
-