Class FluidState
java.lang.Object
net.minecraft.world.level.block.state.StateHolder<Fluid,FluidState>
net.minecraft.world.level.material.FluidState
- All Implemented Interfaces:
IForgeFluidState
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
static int
static com.mojang.serialization.Codec<FluidState>
Fields inherited from class net.minecraft.world.level.block.state.StateHolder
NAME_TAG, owner, PROPERTIES_TAG, propertiesCodec
-
Constructor Summary
ConstructorDescriptionFluidState(Fluid p_76149_, com.google.common.collect.ImmutableMap<Property<?>,Comparable<?>> p_76150_, com.mojang.serialization.MapCodec<FluidState> p_76151_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
animateTick(Level p_76167_, BlockPos p_76168_, Random p_76169_)
boolean
canBeReplacedWith(BlockGetter p_76159_, BlockPos p_76160_, Fluid p_76161_, Direction p_76162_)
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_)
getType()
boolean
boolean
isEmpty()
boolean
boolean
isSource()
boolean
isSourceOfType(Fluid p_164513_)
void
randomTick(Level p_76175_, BlockPos p_76176_, Random p_76177_)
boolean
shouldRenderBackwardUpFace(BlockGetter p_76172_, BlockPos p_76173_)
void
Methods inherited from class net.minecraft.world.level.block.state.StateHolder
codec, cycle, findNextInCollection, getOptionalValue, getProperties, getValue, getValues, hasProperty, populateNeighbours, setValue, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgeFluidState
getExplosionResistance, isEntityInside
-
Field Details
-
CODEC
-
AMOUNT_MAX
public static final int AMOUNT_MAX- See Also:
- Constant Field Values
-
AMOUNT_FULL
public static final int AMOUNT_FULL- See Also:
- Constant Field Values
-
-
Constructor Details
-
FluidState
public FluidState(Fluid p_76149_, com.google.common.collect.ImmutableMap<Property<?>,Comparable<?>> p_76150_, 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
-
getExplosionResistance
Deprecated. -
canBeReplacedWith
public boolean canBeReplacedWith(BlockGetter p_76159_, BlockPos p_76160_, Fluid p_76161_, Direction p_76162_) -
getShape
-