Class FluidState
java.lang.Object
net.minecraft.world.level.block.state.StateHolder<Fluid,FluidState>
net.minecraft.world.level.material.FluidState
- All Implemented Interfaces:
IFluidStateExtension
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final com.mojang.serialization.Codec
<FluidState> Fields inherited from class net.minecraft.world.level.block.state.StateHolder
NAME_TAG, owner, PROPERTIES_TAG, propertiesCodec
-
Constructor Summary
ConstructorsConstructorDescriptionFluidState
(Fluid owner, it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>> values, com.mojang.serialization.MapCodec<FluidState> propertiesCodec) -
Method Summary
Modifier and TypeMethodDescriptionvoid
animateTick
(Level level, BlockPos pos, RandomSource random) boolean
canBeReplacedWith
(BlockGetter level, BlockPos pos, Fluid fluid, Direction direction) int
float
Deprecated.getFlow
(BlockGetter level, BlockPos pos) float
getHeight
(BlockGetter level, BlockPos pos) float
getShape
(BlockGetter level, BlockPos pos) getTags()
getType()
holder()
boolean
boolean
boolean
boolean
isEmpty()
boolean
boolean
isSource()
boolean
isSourceOfType
(Fluid fluid) void
randomTick
(Level level, BlockPos pos, RandomSource random) boolean
shouldRenderBackwardUpFace
(BlockGetter level, BlockPos pos) void
Methods inherited from class net.minecraft.world.level.block.state.StateHolder
codec, cycle, findNextInCollection, getOptionalValue, getProperties, getValue, getValues, hasProperty, populateNeighbours, setValue, toString, trySetValue
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.IFluidStateExtension
canConvertToSource, canExtinguish, canHydrate, getAdjacentBlockPathType, getBlockPathType, getExplosionResistance, getFluidType, move, supportsBoating
-
Field Details
-
CODEC
-
AMOUNT_MAX
public static final int AMOUNT_MAX- See Also:
-
AMOUNT_FULL
public static final int AMOUNT_FULL- See Also:
-
-
Constructor Details
-
FluidState
public FluidState(Fluid owner, it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>> values, com.mojang.serialization.MapCodec<FluidState> propertiesCodec)
-
-
Method Details
-
getType
-
isSource
public boolean isSource() -
isSourceOfType
-
isEmpty
public boolean isEmpty() -
getHeight
-
getOwnHeight
public float getOwnHeight() -
getAmount
public int getAmount() -
shouldRenderBackwardUpFace
-
tick
-
animateTick
-
isRandomlyTicking
public boolean isRandomlyTicking() -
randomTick
-
getFlow
-
createLegacyBlock
-
getDripParticle
-
is
-
is
-
is
-
getExplosionResistance
Deprecated. -
canBeReplacedWith
-
getShape
-
holder
-
getTags
-