Package net.minecraft.fluid
Class FluidState
- All Implemented Interfaces:
IForgeFluidState
-
Field Summary
Fields inherited from class net.minecraft.state.StateHolder
owner, propertiesCodec
-
Constructor Summary
ConstructorDescriptionFluidState
(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 TypeMethodDescriptionvoid
animateTick
(World p_206881_1_, BlockPos p_206881_2_, Random p_206881_3_) boolean
canBeReplacedWith
(IBlockReader p_215677_1_, BlockPos p_215677_2_, Fluid p_215677_3_, Direction p_215677_4_) int
float
Deprecated.getFlow
(IBlockReader p_215673_1_, BlockPos p_215673_2_) float
getHeight
(IBlockReader p_215679_1_, BlockPos p_215679_2_) float
getShape
(IBlockReader p_215676_1_, BlockPos p_215676_2_) getType()
boolean
boolean
isEmpty()
boolean
boolean
isSource()
void
randomTick
(World p_206891_1_, BlockPos p_206891_2_, Random p_206891_3_) boolean
shouldRenderBackwardUpFace
(IBlockReader p_205586_1_, BlockPos p_205586_2_) void
Methods inherited from class net.minecraft.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, 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
-