Package net.minecraft.fluid
Class FluidState
- All Implemented Interfaces:
IForgeFluidState
-
Field Summary
FieldsFields inherited from class net.minecraft.state.StateHolder
owner, propertiesCodec -
Constructor Summary
ConstructorsConstructorDescriptionFluidState(Fluid p_i232145_1_, com.google.common.collect.ImmutableMap<Property<?>, Comparable<?>> p_i232145_2_, com.mojang.serialization.MapCodec<FluidState> p_i232145_3_) -
Method Summary
Modifier and TypeMethodDescriptionvoidanimateTick(World p_206881_1_, BlockPos p_206881_2_, Random p_206881_3_) booleancanBeReplacedWith(IBlockReader p_215677_1_, BlockPos p_215677_2_, Fluid p_215677_3_, Direction p_215677_4_) intfloatDeprecated.getFlow(IBlockReader p_215673_1_, BlockPos p_215673_2_) floatgetHeight(IBlockReader p_215679_1_, BlockPos p_215679_2_) floatgetShape(IBlockReader p_215676_1_, BlockPos p_215676_2_) getType()booleanbooleanisEmpty()booleanbooleanisSource()voidrandomTick(World p_206891_1_, BlockPos p_206891_2_, Random p_206891_3_) booleanshouldRenderBackwardUpFace(IBlockReader p_205586_1_, BlockPos p_205586_2_) voidMethods inherited from class net.minecraft.state.StateHolder
codec, cycle, findNextInCollection, getOptionalValue, getProperties, getValue, getValues, hasProperty, populateNeighbours, setValue, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeFluidState
getExplosionResistance, getFluidState, isEntityInside
-
Field Details
-
CODEC
-
-
Constructor Details
-
FluidState
public FluidState(Fluid p_i232145_1_, com.google.common.collect.ImmutableMap<Property<?>, Comparable<?>> p_i232145_2_, com.mojang.serialization.MapCodec<FluidState> p_i232145_3_)
-
-
Method Details
-
getType
-
isSource
public boolean isSource() -
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(IBlockReader p_215677_1_, BlockPos p_215677_2_, Fluid p_215677_3_, Direction p_215677_4_) -
getShape
-