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 TypeMethodDescriptionbooleancanBeReplacedWith(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) protected BlockStatecreateLegacyBlock(FluidState pState) intgetAmount(FluidState pState) protected floatgetFlow(BlockGetter pBlockReader, BlockPos pPos, FluidState pFluidState) floatgetHeight(FluidState p_75926_, BlockGetter p_75927_, BlockPos p_75928_) floatgetOwnHeight(FluidState p_75924_) getShape(FluidState p_75939_, BlockGetter p_75940_, BlockPos p_75941_) intgetTickDelay(LevelReader p_75922_) protected booleanisEmpty()booleanisSource(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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
canBeReplacedWithin classFluid
-
getFlow
-
getTickDelay
- Specified by:
getTickDelayin classFluid
-
isEmpty
protected boolean isEmpty() -
getExplosionResistance
protected float getExplosionResistance()- Specified by:
getExplosionResistancein classFluid
-
getHeight
-
getOwnHeight
- Specified by:
getOwnHeightin classFluid
-
createLegacyBlock
- Specified by:
createLegacyBlockin classFluid
-
isSource
-
getAmount
-
getShape
-