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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final com.mojang.serialization.Codec<FluidState>Fields inherited from class net.minecraft.world.level.block.state.StateHolderNAME_TAG, owner, PROPERTIES_TAG, propertiesCodec
- 
Constructor SummaryConstructorsConstructorDescriptionFluidState(Fluid p_76149_, com.google.common.collect.ImmutableMap<Property<?>, Comparable<?>> p_76150_, com.mojang.serialization.MapCodec<FluidState> p_76151_) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidanimateTick(Level p_230559_, BlockPos p_230560_, RandomSource p_230561_) booleancanBeReplacedWith(BlockGetter p_76159_, BlockPos p_76160_, Fluid p_76161_, Direction p_76162_) intfloatDeprecated.getFlow(BlockGetter p_76180_, BlockPos p_76181_) floatgetHeight(BlockGetter p_76156_, BlockPos p_76157_) floatgetShape(BlockGetter p_76184_, BlockPos p_76185_) getTags()getType()holder()booleanbooleanbooleanbooleanisEmpty()booleanbooleanisSource()booleanisSourceOfType(Fluid p_164513_) voidrandomTick(Level p_230563_, BlockPos p_230564_, RandomSource p_230565_) booleanshouldRenderBackwardUpFace(BlockGetter p_76172_, BlockPos p_76173_) voidMethods inherited from class net.minecraft.world.level.block.state.StateHoldercodec, cycle, findNextInCollection, getOptionalValue, getProperties, getValue, getValues, hasProperty, populateNeighbours, setValue, toString, trySetValueMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.IFluidStateExtensioncanConvertToSource, canExtinguish, canHydrate, getAdjacentBlockPathType, getBlockPathType, getExplosionResistance, getFluidType, move, supportsBoating
- 
Field Details- 
CODEC
- 
AMOUNT_MAXpublic static final int AMOUNT_MAX- See Also:
 
- 
AMOUNT_FULLpublic static final int AMOUNT_FULL- See Also:
 
 
- 
- 
Constructor Details- 
FluidStatepublic FluidState(Fluid p_76149_, com.google.common.collect.ImmutableMap<Property<?>, Comparable<?>> p_76150_, com.mojang.serialization.MapCodec<FluidState> p_76151_) 
 
- 
- 
Method Details- 
getType
- 
isSourcepublic boolean isSource()
- 
isSourceOfType
- 
isEmptypublic boolean isEmpty()
- 
getHeight
- 
getOwnHeightpublic float getOwnHeight()
- 
getAmountpublic int getAmount()
- 
shouldRenderBackwardUpFace
- 
tick
- 
animateTick
- 
isRandomlyTickingpublic boolean isRandomlyTicking()
- 
randomTick
- 
getFlow
- 
createLegacyBlock
- 
getDripParticle
- 
is
- 
is
- 
is
- 
getExplosionResistanceDeprecated.
- 
canBeReplacedWithpublic boolean canBeReplacedWith(BlockGetter p_76159_, BlockPos p_76160_, Fluid p_76161_, Direction p_76162_) 
- 
getShape
- 
holder
- 
getTags
 
-