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 p_76149_, it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>> p_325993_, com.mojang.serialization.MapCodec<FluidState> p_76151_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
animateTick
(Level p_230559_, BlockPos p_230560_, RandomSource p_230561_) boolean
canBeReplacedWith
(BlockGetter p_76159_, BlockPos p_76160_, Fluid p_76161_, Direction p_76162_) void
entityInside
(Level p_404939_, BlockPos p_405826_, Entity p_405864_, InsideBlockEffectApplier p_405044_) getAABB
(BlockGetter p_397401_, BlockPos p_397989_) int
float
Deprecated.getFlow
(BlockGetter p_76180_, BlockPos p_76181_) float
getHeight
(BlockGetter p_76156_, BlockPos p_76157_) float
getShape
(BlockGetter p_76184_, BlockPos p_76185_) getTags()
getType()
holder()
boolean
boolean
boolean
boolean
isEmpty()
boolean
boolean
isSource()
boolean
isSourceOfType
(Fluid p_164513_) void
randomTick
(ServerLevel p_376487_, BlockPos p_230564_, RandomSource p_230565_) boolean
shouldRenderBackwardUpFace
(BlockGetter p_76172_, BlockPos p_76173_) void
tick
(ServerLevel p_376550_, BlockPos p_76165_, BlockState p_360548_) Methods inherited from class net.minecraft.world.level.block.state.StateHolder
codec, cycle, equals, findNextInCollection, getOptionalValue, getProperties, getValue, getValueOrElse, getValues, hashCode, hasProperty, populateNeighbours, setValue, toString, trySetValue
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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 p_76149_, it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>> p_325993_, com.mojang.serialization.MapCodec<FluidState> p_76151_)
-
-
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
public boolean canBeReplacedWith(BlockGetter p_76159_, BlockPos p_76160_, Fluid p_76161_, Direction p_76162_) -
getShape
-
getAABB
-
holder
-
getTags
-
entityInside
public void entityInside(Level p_404939_, BlockPos p_405826_, Entity p_405864_, InsideBlockEffectApplier p_405044_)
-