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 fluidState, BlockGetter blockReader, BlockPos pos, Fluid fluid, Direction direction) protected BlockStatecreateLegacyBlock(FluidState state) intgetAmount(FluidState state) protected floatgetFlow(BlockGetter blockReader, BlockPos pos, FluidState fluidState) floatgetHeight(FluidState state, BlockGetter level, BlockPos pos) floatgetOwnHeight(FluidState state) getShape(FluidState state, BlockGetter level, BlockPos pos) intgetTickDelay(LevelReader level) protected booleanisEmpty()booleanisSource(FluidState state) 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 fluidState, BlockGetter blockReader, BlockPos pos, Fluid fluid, Direction direction) - 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
-