Uses of Class
net.minecraft.fluid.FluidState
Package
Description
-
Uses of FluidState in net.minecraft.advancements.criterion
Modifier and TypeMethodDescriptionboolean
StatePropertiesPredicate.matches
(FluidState p_227185_1_) -
Uses of FluidState in net.minecraft.block
Modifier and TypeMethodDescriptionAbstractBlock.AbstractBlockState.getFluidState()
AbstractBlock.getFluidState
(BlockState p_204507_1_) Deprecated.AbstractCoralPlantBlock.getFluidState
(BlockState p_204507_1_) AbstractSignBlock.getFluidState
(BlockState p_204507_1_) BubbleColumnBlock.getFluidState
(BlockState p_204507_1_) CampfireBlock.getFluidState
(BlockState p_204507_1_) ChainBlock.getFluidState
(BlockState p_204507_1_) ChestBlock.getFluidState
(BlockState p_204507_1_) ConduitBlock.getFluidState
(BlockState p_204507_1_) EnderChestBlock.getFluidState
(BlockState p_204507_1_) FlowingFluidBlock.getFluidState
(BlockState p_204507_1_) FourWayBlock.getFluidState
(BlockState p_204507_1_) KelpBlock.getFluidState
(BlockState p_204507_1_) KelpTopBlock.getFluidState
(BlockState p_204507_1_) LadderBlock.getFluidState
(BlockState p_204507_1_) LanternBlock.getFluidState
(BlockState p_204507_1_) ScaffoldingBlock.getFluidState
(BlockState p_204507_1_) SeaGrassBlock.getFluidState
(BlockState p_204507_1_) SeaPickleBlock.getFluidState
(BlockState p_204507_1_) SlabBlock.getFluidState
(BlockState p_204507_1_) StairsBlock.getFluidState
(BlockState p_204507_1_) TallSeaGrassBlock.getFluidState
(BlockState p_204507_1_) TrapDoorBlock.getFluidState
(BlockState p_204507_1_) WallBlock.getFluidState
(BlockState p_204507_1_) Modifier and TypeMethodDescriptionboolean
CampfireBlock.placeLiquid
(IWorld p_204509_1_, BlockPos p_204509_2_, BlockState p_204509_3_, FluidState p_204509_4_) boolean
ILiquidContainer.placeLiquid
(IWorld p_204509_1_, BlockPos p_204509_2_, BlockState p_204509_3_, FluidState p_204509_4_) default boolean
IWaterLoggable.placeLiquid
(IWorld p_204509_1_, BlockPos p_204509_2_, BlockState p_204509_3_, FluidState p_204509_4_) boolean
KelpBlock.placeLiquid
(IWorld p_204509_1_, BlockPos p_204509_2_, BlockState p_204509_3_, FluidState p_204509_4_) boolean
KelpTopBlock.placeLiquid
(IWorld p_204509_1_, BlockPos p_204509_2_, BlockState p_204509_3_, FluidState p_204509_4_) boolean
SeaGrassBlock.placeLiquid
(IWorld p_204509_1_, BlockPos p_204509_2_, BlockState p_204509_3_, FluidState p_204509_4_) boolean
SlabBlock.placeLiquid
(IWorld p_204509_1_, BlockPos p_204509_2_, BlockState p_204509_3_, FluidState p_204509_4_) boolean
TallSeaGrassBlock.placeLiquid
(IWorld p_204509_1_, BlockPos p_204509_2_, BlockState p_204509_3_, FluidState p_204509_4_) -
Uses of FluidState in net.minecraft.client.renderer
Modifier and TypeMethodDescriptionstatic boolean
RenderTypeLookup.canRenderInLayer
(FluidState fluid, RenderType type) static RenderType
RenderTypeLookup.getRenderLayer
(FluidState p_228391_0_) Deprecated.private static boolean
FluidBlockRenderer.isNeighborSameFluid
(IBlockReader p_209557_0_, BlockPos p_209557_1_, Direction p_209557_2_, FluidState p_209557_3_) boolean
BlockRendererDispatcher.renderLiquid
(BlockPos p_228794_1_, IBlockDisplayReader p_228794_2_, IVertexBuilder p_228794_3_, FluidState p_228794_4_) static boolean
FluidBlockRenderer.shouldRenderFace
(IBlockDisplayReader p_239281_0_, BlockPos p_239281_1_, FluidState p_239281_2_, BlockState p_239281_3_, Direction p_239281_4_) boolean
FluidBlockRenderer.tesselate
(IBlockDisplayReader p_228796_1_, BlockPos p_228796_2_, IVertexBuilder p_228796_3_, FluidState p_228796_4_) -
Uses of FluidState in net.minecraft.client.renderer.chunk
-
Uses of FluidState in net.minecraft.entity
Modifier and TypeMethodDescriptionfloat
Entity.getBlockExplosionResistance
(Explosion p_180428_1_, IBlockReader p_180428_2_, BlockPos p_180428_3_, BlockState p_180428_4_, FluidState p_180428_5_, float p_180428_6_) -
Uses of FluidState in net.minecraft.entity.item.minecart
Modifier and TypeMethodDescriptionfloat
TNTMinecartEntity.getBlockExplosionResistance
(Explosion p_180428_1_, IBlockReader p_180428_2_, BlockPos p_180428_3_, BlockState p_180428_4_, FluidState p_180428_5_, float p_180428_6_) -
Uses of FluidState in net.minecraft.entity.projectile
Modifier and TypeMethodDescriptionfloat
WitherSkullEntity.getBlockExplosionResistance
(Explosion p_180428_1_, IBlockReader p_180428_2_, BlockPos p_180428_3_, BlockState p_180428_4_, FluidState p_180428_5_, float p_180428_6_) -
Uses of FluidState in net.minecraft.fluid
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FluidState>
FluidState.CODEC
static final ObjectIntIdentityMap<FluidState>
Fluid.FLUID_STATE_REGISTRY
private final Map<FluidState,
VoxelShape> FlowingFluid.shapes
protected final StateContainer<Fluid,
FluidState> Fluid.stateDefinition
Modifier and TypeMethodDescriptionfinal FluidState
Fluid.defaultFluidState()
FlowingFluid.getFlowing
(int p_207207_1_, boolean p_207207_2_) protected FluidState
FlowingFluid.getNewLiquid
(IWorldReader p_205576_1_, BlockPos p_205576_2_, BlockState p_205576_3_) FlowingFluid.getSource
(boolean p_207204_1_) Modifier and TypeMethodDescriptionprotected Map<Direction,
FluidState> FlowingFluid.getSpread
(IWorldReader p_205572_1_, BlockPos p_205572_2_, BlockState p_205572_3_) Fluid.getStateDefinition()
Modifier and TypeMethodDescriptionprivate boolean
FlowingFluid.affectsFlow
(FluidState p_212189_1_) protected void
Fluid.animateTick
(World p_204522_1_, BlockPos p_204522_2_, FluidState p_204522_3_, Random p_204522_4_) void
LavaFluid.animateTick
(World p_204522_1_, BlockPos p_204522_2_, FluidState p_204522_3_, Random p_204522_4_) void
WaterFluid.animateTick
(World p_204522_1_, BlockPos p_204522_2_, FluidState p_204522_3_, Random p_204522_4_) boolean
EmptyFluid.canBeReplacedWith
(FluidState p_215665_1_, IBlockReader p_215665_2_, BlockPos p_215665_3_, Fluid p_215665_4_, Direction p_215665_5_) protected abstract boolean
Fluid.canBeReplacedWith
(FluidState p_215665_1_, IBlockReader p_215665_2_, BlockPos p_215665_3_, Fluid p_215665_4_, Direction p_215665_5_) boolean
LavaFluid.canBeReplacedWith
(FluidState p_215665_1_, IBlockReader p_215665_2_, BlockPos p_215665_3_, Fluid p_215665_4_, Direction p_215665_5_) boolean
WaterFluid.canBeReplacedWith
(FluidState p_215665_1_, IBlockReader p_215665_2_, BlockPos p_215665_3_, Fluid p_215665_4_, Direction p_215665_5_) private boolean
FlowingFluid.canPassThrough
(IBlockReader p_211760_1_, Fluid p_211760_2_, BlockPos p_211760_3_, BlockState p_211760_4_, Direction p_211760_5_, BlockPos p_211760_6_, BlockState p_211760_7_, FluidState p_211760_8_) protected boolean
FlowingFluid.canSpreadTo
(IBlockReader p_205570_1_, BlockPos p_205570_2_, BlockState p_205570_3_, Direction p_205570_4_, BlockPos p_205570_5_, BlockState p_205570_6_, FluidState p_205570_7_, Fluid p_205570_8_) protected BlockState
EmptyFluid.createLegacyBlock
(FluidState p_204527_1_) protected abstract BlockState
Fluid.createLegacyBlock
(FluidState p_204527_1_) LavaFluid.createLegacyBlock
(FluidState p_204527_1_) WaterFluid.createLegacyBlock
(FluidState p_204527_1_) int
EmptyFluid.getAmount
(FluidState p_207192_1_) abstract int
Fluid.getAmount
(FluidState p_207192_1_) int
LavaFluid.Flowing.getAmount
(FluidState p_207192_1_) int
LavaFluid.Source.getAmount
(FluidState p_207192_1_) int
WaterFluid.Flowing.getAmount
(FluidState p_207192_1_) int
WaterFluid.Source.getAmount
(FluidState p_207192_1_) EmptyFluid.getFlow
(IBlockReader p_215663_1_, BlockPos p_215663_2_, FluidState p_215663_3_) FlowingFluid.getFlow
(IBlockReader p_215663_1_, BlockPos p_215663_2_, FluidState p_215663_3_) protected abstract Vector3d
Fluid.getFlow
(IBlockReader p_215663_1_, BlockPos p_215663_2_, FluidState p_215663_3_) float
EmptyFluid.getHeight
(FluidState p_215662_1_, IBlockReader p_215662_2_, BlockPos p_215662_3_) float
FlowingFluid.getHeight
(FluidState p_215662_1_, IBlockReader p_215662_2_, BlockPos p_215662_3_) abstract float
Fluid.getHeight
(FluidState p_215662_1_, IBlockReader p_215662_2_, BlockPos p_215662_3_) protected static int
FlowingFluid.getLegacyLevel
(FluidState p_207205_0_) float
EmptyFluid.getOwnHeight
(FluidState p_223407_1_) float
FlowingFluid.getOwnHeight
(FluidState p_223407_1_) abstract float
Fluid.getOwnHeight
(FluidState p_223407_1_) EmptyFluid.getShape
(FluidState p_215664_1_, IBlockReader p_215664_2_, BlockPos p_215664_3_) FlowingFluid.getShape
(FluidState p_215664_1_, IBlockReader p_215664_2_, BlockPos p_215664_3_) abstract VoxelShape
Fluid.getShape
(FluidState p_215664_1_, IBlockReader p_215664_2_, BlockPos p_215664_3_) protected int
FlowingFluid.getSpreadDelay
(World p_215667_1_, BlockPos p_215667_2_, FluidState p_215667_3_, FluidState p_215667_4_) int
LavaFluid.getSpreadDelay
(World p_215667_1_, BlockPos p_215667_2_, FluidState p_215667_3_, FluidState p_215667_4_) private static boolean
FlowingFluid.hasSameAbove
(FluidState p_215666_0_, IBlockReader p_215666_1_, BlockPos p_215666_2_) boolean
EmptyFluid.isSource
(FluidState p_207193_1_) abstract boolean
Fluid.isSource
(FluidState p_207193_1_) boolean
LavaFluid.Flowing.isSource
(FluidState p_207193_1_) boolean
LavaFluid.Source.isSource
(FluidState p_207193_1_) boolean
WaterFluid.Flowing.isSource
(FluidState p_207193_1_) boolean
WaterFluid.Source.isSource
(FluidState p_207193_1_) private boolean
FlowingFluid.isSourceBlockOfThisType
(FluidState p_211758_1_) protected void
Fluid.randomTick
(World p_207186_1_, BlockPos p_207186_2_, FluidState p_207186_3_, Random p_207186_4_) void
LavaFluid.randomTick
(World p_207186_1_, BlockPos p_207186_2_, FluidState p_207186_3_, Random p_207186_4_) protected final void
Fluid.registerDefaultState
(FluidState p_207183_1_) protected void
FlowingFluid.spread
(IWorld p_205575_1_, BlockPos p_205575_2_, FluidState p_205575_3_) protected void
FlowingFluid.spreadTo
(IWorld p_205574_1_, BlockPos p_205574_2_, BlockState p_205574_3_, Direction p_205574_4_, FluidState p_205574_5_) protected void
LavaFluid.spreadTo
(IWorld p_205574_1_, BlockPos p_205574_2_, BlockState p_205574_3_, Direction p_205574_4_, FluidState p_205574_5_) private void
FlowingFluid.spreadToSides
(IWorld p_207937_1_, BlockPos p_207937_2_, FluidState p_207937_3_, BlockState p_207937_4_) void
FlowingFluid.tick
(World p_207191_1_, BlockPos p_207191_2_, FluidState p_207191_3_) protected void
Fluid.tick
(World p_207191_1_, BlockPos p_207191_2_, FluidState p_207191_3_) Modifier and TypeMethodDescriptionprotected void
FlowingFluid.createFluidStateDefinition
(StateContainer.Builder<Fluid, FluidState> p_207184_1_) protected void
Fluid.createFluidStateDefinition
(StateContainer.Builder<Fluid, FluidState> p_207184_1_) protected void
LavaFluid.Flowing.createFluidStateDefinition
(StateContainer.Builder<Fluid, FluidState> p_207184_1_) protected void
WaterFluid.Flowing.createFluidStateDefinition
(StateContainer.Builder<Fluid, FluidState> p_207184_1_) protected int
FlowingFluid.getSlopeDistance
(IWorldReader p_205571_1_, BlockPos p_205571_2_, int p_205571_3_, Direction p_205571_4_, BlockState p_205571_5_, BlockPos p_205571_6_, it.unimi.dsi.fastutil.shorts.Short2ObjectMap<com.mojang.datafixers.util.Pair<BlockState, FluidState>> p_205571_7_, it.unimi.dsi.fastutil.shorts.Short2BooleanMap p_205571_8_) ModifierConstructorDescriptionFluidState
(Fluid p_i232145_1_, com.google.common.collect.ImmutableMap<Property<?>, Comparable<?>> p_i232145_2_, com.mojang.serialization.MapCodec<FluidState> p_i232145_3_) -
Uses of FluidState in net.minecraft.util.math
Modifier and TypeFieldDescriptionprivate final Predicate<FluidState>
RayTraceContext.FluidMode.canPick
Modifier and TypeMethodDescriptionboolean
RayTraceContext.FluidMode.canPick
(FluidState p_222248_1_) RayTraceContext.getFluidShape
(FluidState p_222252_1_, IBlockReader p_222252_2_, BlockPos p_222252_3_) -
Uses of FluidState in net.minecraft.util.math.shapes
Modifier and TypeMethodDescriptionboolean
EntitySelectionContext.canStandOnFluid
(FluidState p_230426_1_, FlowingFluid p_230426_2_) boolean
ISelectionContext.canStandOnFluid
(FluidState p_230426_1_, FlowingFluid p_230426_2_) -
Uses of FluidState in net.minecraft.world
Modifier and TypeMethodDescriptionBlockreader.getFluidState
(BlockPos p_204610_1_) EmptyBlockReader.getFluidState
(BlockPos p_204610_1_) IBlockReader.getFluidState
(BlockPos p_204610_1_) Region.getFluidState
(BlockPos p_204610_1_) World.getFluidState
(BlockPos p_204610_1_) Modifier and TypeMethodDescriptionEntityExplosionContext.getBlockExplosionResistance
(Explosion p_230312_1_, IBlockReader p_230312_2_, BlockPos p_230312_3_, BlockState p_230312_4_, FluidState p_230312_5_) ExplosionContext.getBlockExplosionResistance
(Explosion p_230312_1_, IBlockReader p_230312_2_, BlockPos p_230312_3_, BlockState p_230312_4_, FluidState p_230312_5_) -
Uses of FluidState in net.minecraft.world.chunk
Modifier and TypeMethodDescriptionChunk.getFluidState
(int p_205751_1_, int p_205751_2_, int p_205751_3_) Chunk.getFluidState
(BlockPos p_204610_1_) ChunkPrimer.getFluidState
(BlockPos p_204610_1_) ChunkPrimerWrapper.getFluidState
(BlockPos p_204610_1_) ChunkSection.getFluidState
(int p_206914_1_, int p_206914_2_, int p_206914_3_) EmptyChunk.getFluidState
(BlockPos p_204610_1_) -
Uses of FluidState in net.minecraft.world.gen
-
Uses of FluidState in net.minecraft.world.gen.carver
Modifier and TypeFieldDescriptionprotected static final FluidState
WorldCarver.LAVA
protected static final FluidState
WorldCarver.WATER
-
Uses of FluidState in net.minecraft.world.gen.feature
Modifier and TypeFieldDescriptionprotected static final FluidState
Features.States.LAVA_STATE
final FluidState
LiquidsConfig.state
protected static final FluidState
Features.States.WATER_STATE
ModifierConstructorDescriptionLiquidsConfig
(FluidState p_i225841_1_, boolean p_i225841_2_, int p_i225841_3_, int p_i225841_4_, Set<Block> p_i225841_5_) -
Uses of FluidState in net.minecraft.world.spawner
Modifier and TypeMethodDescriptionstatic boolean
WorldEntitySpawner.isValidEmptySpawnBlock
(IBlockReader p_234968_0_, BlockPos p_234968_1_, BlockState p_234968_2_, FluidState p_234968_3_, EntityType<?> p_234968_4_) -
Uses of FluidState in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic TextureAtlasSprite[]
ForgeHooksClient.getFluidSprites
(IBlockDisplayReader world, BlockPos pos, FluidState fluidStateIn) -
Uses of FluidState in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault float
IForgeFluid.getExplosionResistance
(FluidState state, IBlockReader world, BlockPos pos, Explosion explosion) Location sensitive version of getExplosionResistancedefault Boolean
IForgeFluid.isAABBInsideLiquid
(FluidState state, IWorldReader world, BlockPos pos, AxisAlignedBB boundingBox) Called when entities are moving to check if they are inside a liquiddefault Boolean
IForgeFluid.isAABBInsideMaterial
(FluidState state, IWorldReader world, BlockPos pos, AxisAlignedBB boundingBox, Material materialIn) Called when boats or fishing hooks are inside the block to check if they are inside the material requested.default boolean
IForgeFluid.isEntityInside
(FluidState state, IWorldReader world, BlockPos pos, Entity entity, double yToTest, Tag<Fluid> tag, boolean testingHead) Called when the entity is inside this block, may be used to determined if the entity can breathing, display material overlays, or if the entity can swim inside a block.default boolean
IForgeBlock.removedByPlayer
(BlockState state, World world, BlockPos pos, PlayerEntity player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default boolean
IForgeBlockState.removedByPlayer
(World world, BlockPos pos, PlayerEntity player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default boolean
IForgeBlock.shouldDisplayFluidOverlay
(BlockState state, IBlockDisplayReader world, BlockPos pos, FluidState fluidState) Called to determine whether this block should use the fluid overlay texture or flowing texture when it is placed under the fluid.default boolean
IForgeBlockState.shouldDisplayFluidOverlay
(IBlockDisplayReader world, BlockPos pos, FluidState fluidState) Called to determine whether this block should use the fluid overlay texture or flowing texture when it is placed under the fluid. -
Uses of FluidState in net.minecraftforge.debug.fluid
Modifier and TypeMethodDescriptionNewFluidTest.FluidloggableBlock.getFluidState
(BlockState state) Modifier and TypeMethodDescriptionboolean
NewFluidTest.FluidloggableBlock.placeLiquid
(IWorld worldIn, BlockPos pos, BlockState state, FluidState fluidStateIn) -
Uses of FluidState in net.minecraftforge.fluids
Modifier and TypeMethodDescriptionFluidAttributes.getStateForPlacement
(IBlockDisplayReader reader, BlockPos pos, FluidStack state) Modifier and TypeMethodDescriptionfinal boolean
FluidAttributes.canBePlacedInWorld
(IBlockDisplayReader reader, BlockPos pos, FluidState state) protected boolean
ForgeFlowingFluid.canBeReplacedWith
(FluidState state, IBlockReader world, BlockPos pos, Fluid fluidIn, Direction direction) protected BlockState
ForgeFlowingFluid.createLegacyBlock
(FluidState state) int
ForgeFlowingFluid.Flowing.getAmount
(FluidState state) int
ForgeFlowingFluid.Source.getAmount
(FluidState state) FluidAttributes.getBlock
(IBlockDisplayReader reader, BlockPos pos, FluidState state) boolean
ForgeFlowingFluid.Flowing.isSource
(FluidState state) boolean
ForgeFlowingFluid.Source.isSource
(FluidState state) Modifier and TypeMethodDescriptionprotected void
ForgeFlowingFluid.Flowing.createFluidStateDefinition
(StateContainer.Builder<Fluid, FluidState> builder)