Package net.minecraft.fluid
Class FluidState
- java.lang.Object
-
- net.minecraft.state.StateHolder<Fluid,FluidState>
-
- net.minecraft.fluid.FluidState
-
- All Implemented Interfaces:
IForgeFluidState
public final class FluidState extends StateHolder<Fluid,FluidState> implements IForgeFluidState
-
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<FluidState>
CODEC
-
Fields inherited from class net.minecraft.state.StateHolder
owner, propertiesCodec
-
-
Constructor Summary
Constructors Constructor Description FluidState(Fluid p_i232145_1_, com.google.common.collect.ImmutableMap<Property<?>,java.lang.Comparable<?>> p_i232145_2_, com.mojang.serialization.MapCodec<FluidState> p_i232145_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
animateTick(World p_206881_1_, BlockPos p_206881_2_, java.util.Random p_206881_3_)
boolean
canBeReplacedWith(IBlockReader p_215677_1_, BlockPos p_215677_2_, Fluid p_215677_3_, Direction p_215677_4_)
BlockState
createLegacyBlock()
int
getAmount()
IParticleData
getDripParticle()
float
getExplosionResistance()
Deprecated.Vector3d
getFlow(IBlockReader p_215673_1_, BlockPos p_215673_2_)
float
getHeight(IBlockReader p_215679_1_, BlockPos p_215679_2_)
float
getOwnHeight()
VoxelShape
getShape(IBlockReader p_215676_1_, BlockPos p_215676_2_)
Fluid
getType()
boolean
is(ITag<Fluid> p_206884_1_)
boolean
isEmpty()
boolean
isRandomlyTicking()
boolean
isSource()
void
randomTick(World p_206891_1_, BlockPos p_206891_2_, java.util.Random p_206891_3_)
boolean
shouldRenderBackwardUpFace(IBlockReader p_205586_1_, BlockPos p_205586_2_)
void
tick(World p_206880_1_, BlockPos p_206880_2_)
-
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 Detail
-
CODEC
public static final com.mojang.serialization.Codec<FluidState> CODEC
-
-
Constructor Detail
-
FluidState
public FluidState(Fluid p_i232145_1_, com.google.common.collect.ImmutableMap<Property<?>,java.lang.Comparable<?>> p_i232145_2_, com.mojang.serialization.MapCodec<FluidState> p_i232145_3_)
-
-
Method Detail
-
getType
public Fluid getType()
-
isSource
public boolean isSource()
-
isEmpty
public boolean isEmpty()
-
getHeight
public float getHeight(IBlockReader p_215679_1_, BlockPos p_215679_2_)
-
getOwnHeight
public float getOwnHeight()
-
getAmount
public int getAmount()
-
shouldRenderBackwardUpFace
public boolean shouldRenderBackwardUpFace(IBlockReader p_205586_1_, BlockPos p_205586_2_)
-
animateTick
public void animateTick(World p_206881_1_, BlockPos p_206881_2_, java.util.Random p_206881_3_)
-
isRandomlyTicking
public boolean isRandomlyTicking()
-
randomTick
public void randomTick(World p_206891_1_, BlockPos p_206891_2_, java.util.Random p_206891_3_)
-
getFlow
public Vector3d getFlow(IBlockReader p_215673_1_, BlockPos p_215673_2_)
-
createLegacyBlock
public BlockState createLegacyBlock()
-
getDripParticle
@Nullable public IParticleData getDripParticle()
-
getExplosionResistance
@Deprecated public float getExplosionResistance()
Deprecated.
-
canBeReplacedWith
public boolean canBeReplacedWith(IBlockReader p_215677_1_, BlockPos p_215677_2_, Fluid p_215677_3_, Direction p_215677_4_)
-
getShape
public VoxelShape getShape(IBlockReader p_215676_1_, BlockPos p_215676_2_)
-
-