Uses of Class
net.minecraft.world.level.material.FluidState
Package
Description
-
Uses of FluidState in net.minecraft.advancements.critereon
-
Uses of FluidState in net.minecraft.client.renderer
Modifier and TypeMethodDescriptionstatic boolean
ItemBlockRenderTypes.canRenderInLayer
(FluidState fluid, RenderType type) static RenderType
ItemBlockRenderTypes.getRenderLayer
(FluidState p_109288_) Deprecated. -
Uses of FluidState in net.minecraft.client.renderer.block
Modifier and TypeMethodDescriptionprivate float
LiquidBlockRenderer.getHeight
(BlockAndTintGetter p_203161_, Fluid p_203162_, BlockPos p_203163_, BlockState p_203164_, FluidState p_203165_) private static boolean
LiquidBlockRenderer.isNeighborSameFluid
(FluidState p_203186_, FluidState p_203187_) boolean
BlockRenderDispatcher.renderLiquid
(BlockPos p_203144_, BlockAndTintGetter p_203145_, VertexConsumer p_203146_, BlockState p_203147_, FluidState p_203148_) static boolean
LiquidBlockRenderer.shouldRenderFace
(BlockAndTintGetter p_203167_, BlockPos p_203168_, FluidState p_203169_, BlockState p_203170_, Direction p_203171_, FluidState p_203172_) boolean
LiquidBlockRenderer.tesselate
(BlockAndTintGetter p_203174_, BlockPos p_203175_, VertexConsumer p_203176_, BlockState p_203177_, FluidState p_203178_) -
Uses of FluidState in net.minecraft.client.renderer.chunk
-
Uses of FluidState in net.minecraft.nbt
Modifier and TypeMethodDescriptionstatic CompoundTag
NbtUtils.writeFluidState
(FluidState p_178023_) -
Uses of FluidState in net.minecraft.server.level
Modifier and TypeMethodDescriptionboolean
WorldGenRegion.isFluidAtPosition
(BlockPos p_143500_, Predicate<FluidState> p_143501_) -
Uses of FluidState in net.minecraft.world.entity
Modifier and TypeMethodDescriptionboolean
LivingEntity.canStandOnFluid
(FluidState p_204042_) float
Entity.getBlockExplosionResistance
(Explosion p_19992_, BlockGetter p_19993_, BlockPos p_19994_, BlockState p_19995_, FluidState p_19996_, float p_19997_) -
Uses of FluidState in net.minecraft.world.entity.monster
-
Uses of FluidState in net.minecraft.world.entity.projectile
Modifier and TypeMethodDescriptionfloat
WitherSkull.getBlockExplosionResistance
(Explosion p_37619_, BlockGetter p_37620_, BlockPos p_37621_, BlockState p_37622_, FluidState p_37623_, float p_37624_) -
Uses of FluidState in net.minecraft.world.entity.vehicle
Modifier and TypeMethodDescriptionfloat
MinecartTNT.getBlockExplosionResistance
(Explosion p_38675_, BlockGetter p_38676_, BlockPos p_38677_, BlockState p_38678_, FluidState p_38679_, float p_38680_) -
Uses of FluidState in net.minecraft.world.level
Modifier and TypeMethodDescriptionBlockGetter.getFluidState
(BlockPos p_45569_) EmptyBlockGetter.getFluidState
(BlockPos p_45865_) Level.getFluidState
(BlockPos p_46671_) PathNavigationRegion.getFluidState
(BlockPos p_47171_) Modifier and TypeMethodDescriptionboolean
ClipContext.Fluid.canPick
(FluidState p_45732_) EntityBasedExplosionDamageCalculator.getBlockExplosionResistance
(Explosion p_45902_, BlockGetter p_45903_, BlockPos p_45904_, BlockState p_45905_, FluidState p_45906_) ExplosionDamageCalculator.getBlockExplosionResistance
(Explosion p_46099_, BlockGetter p_46100_, BlockPos p_46101_, BlockState p_46102_, FluidState p_46103_) ClipContext.getFluidShape
(FluidState p_45699_, BlockGetter p_45700_, BlockPos p_45701_) static boolean
NaturalSpawner.isValidEmptySpawnBlock
(BlockGetter p_47057_, BlockPos p_47058_, BlockState p_47059_, FluidState p_47060_, EntityType<?> p_47061_) Modifier and TypeMethodDescriptionboolean
Level.isFluidAtPosition
(BlockPos p_151541_, Predicate<FluidState> p_151542_) boolean
LevelSimulatedReader.isFluidAtPosition
(BlockPos p_151584_, Predicate<FluidState> p_151585_) -
Uses of FluidState in net.minecraft.world.level.block
Modifier and TypeMethodDescriptionAmethystClusterBlock.getFluidState
(BlockState p_152045_) BaseCoralPlantTypeBlock.getFluidState
(BlockState p_49191_) BaseRailBlock.getFluidState
(BlockState p_152158_) BigDripleafBlock.getFluidState
(BlockState p_152312_) BigDripleafStemBlock.getFluidState
(BlockState p_152378_) BubbleColumnBlock.getFluidState
(BlockState p_51016_) CampfireBlock.getFluidState
(BlockState p_51318_) CandleBlock.getFluidState
(BlockState p_152844_) ChainBlock.getFluidState
(BlockState p_51475_) ChestBlock.getFluidState
(BlockState p_51581_) ConduitBlock.getFluidState
(BlockState p_52127_) CrossCollisionBlock.getFluidState
(BlockState p_52362_) EnderChestBlock.getFluidState
(BlockState p_53177_) GlowLichenBlock.getFluidState
(BlockState p_153311_) HangingRootsBlock.getFluidState
(BlockState p_153360_) KelpBlock.getFluidState
(BlockState p_54319_) KelpPlantBlock.getFluidState
(BlockState p_54336_) LadderBlock.getFluidState
(BlockState p_54377_) LanternBlock.getFluidState
(BlockState p_153492_) LightBlock.getFluidState
(BlockState p_153699_) LightningRodBlock.getFluidState
(BlockState p_153759_) LiquidBlock.getFluidState
(BlockState p_54765_) PointedDripstoneBlock.getFluidState
(BlockState p_154235_) ScaffoldingBlock.getFluidState
(BlockState p_56073_) SculkSensorBlock.getFluidState
(BlockState p_154479_) SeagrassBlock.getFluidState
(BlockState p_154537_) SeaPickleBlock.getFluidState
(BlockState p_56131_) SignBlock.getFluidState
(BlockState p_56299_) SlabBlock.getFluidState
(BlockState p_56397_) SmallDripleafBlock.getFluidState
(BlockState p_154634_) StairBlock.getFluidState
(BlockState p_56969_) TallSeagrassBlock.getFluidState
(BlockState p_154772_) TrapDoorBlock.getFluidState
(BlockState p_57568_) WallBlock.getFluidState
(BlockState p_58060_) Modifier and TypeMethodDescriptionprotected static boolean
BigDripleafBlock.place
(LevelAccessor p_152242_, BlockPos p_152243_, FluidState p_152244_, Direction p_152245_) protected static boolean
BigDripleafStemBlock.place
(LevelAccessor p_152350_, BlockPos p_152351_, FluidState p_152352_, Direction p_152353_) boolean
CampfireBlock.placeLiquid
(LevelAccessor p_51257_, BlockPos p_51258_, BlockState p_51259_, FluidState p_51260_) boolean
CandleBlock.placeLiquid
(LevelAccessor p_152805_, BlockPos p_152806_, BlockState p_152807_, FluidState p_152808_) boolean
KelpBlock.placeLiquid
(LevelAccessor p_54309_, BlockPos p_54310_, BlockState p_54311_, FluidState p_54312_) boolean
KelpPlantBlock.placeLiquid
(LevelAccessor p_54330_, BlockPos p_54331_, BlockState p_54332_, FluidState p_54333_) boolean
LiquidBlockContainer.placeLiquid
(LevelAccessor p_54770_, BlockPos p_54771_, BlockState p_54772_, FluidState p_54773_) boolean
SeagrassBlock.placeLiquid
(LevelAccessor p_154520_, BlockPos p_154521_, BlockState p_154522_, FluidState p_154523_) default boolean
SimpleWaterloggedBlock.placeLiquid
(LevelAccessor p_56306_, BlockPos p_56307_, BlockState p_56308_, FluidState p_56309_) boolean
SlabBlock.placeLiquid
(LevelAccessor p_56368_, BlockPos p_56369_, BlockState p_56370_, FluidState p_56371_) boolean
TallSeagrassBlock.placeLiquid
(LevelAccessor p_154758_, BlockPos p_154759_, BlockState p_154760_, FluidState p_154761_) -
Uses of FluidState in net.minecraft.world.level.block.state
Modifier and TypeMethodDescriptionBlockBehaviour.BlockStateBase.getFluidState()
BlockBehaviour.getFluidState
(BlockState p_60577_) Deprecated. -
Uses of FluidState in net.minecraft.world.level.chunk
Modifier and TypeMethodDescriptionEmptyLevelChunk.getFluidState
(BlockPos p_62621_) ImposterProtoChunk.getFluidState
(BlockPos p_62736_) LevelChunk.getFluidState
(int p_62815_, int p_62816_, int p_62817_) LevelChunk.getFluidState
(BlockPos p_62895_) LevelChunkSection.getFluidState
(int p_63008_, int p_63009_, int p_63010_) ProtoChunk.getFluidState
(BlockPos p_63239_) -
Uses of FluidState in net.minecraft.world.level.levelgen.carver
Modifier and TypeFieldDescriptionprotected static final FluidState
WorldCarver.LAVA
protected static final FluidState
WorldCarver.WATER
-
Uses of FluidState in net.minecraft.world.level.levelgen.feature.configurations
ModifierConstructorDescriptionSpringConfiguration
(FluidState p_204848_, boolean p_204849_, int p_204850_, int p_204851_, HolderSet<Block> p_204852_) -
Uses of FluidState in net.minecraft.world.level.material
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FluidState>
FluidState.CODEC
static final IdMapper<FluidState>
Fluid.FLUID_STATE_REGISTRY
private final Map<FluidState,
VoxelShape> FlowingFluid.shapes
protected final StateDefinition<Fluid,
FluidState> Fluid.stateDefinition
Modifier and TypeMethodDescriptionfinal FluidState
Fluid.defaultFluidState()
FlowingFluid.getFlowing
(int p_75954_, boolean p_75955_) protected FluidState
FlowingFluid.getNewLiquid
(LevelReader p_76036_, BlockPos p_76037_, BlockState p_76038_) FlowingFluid.getSource
(boolean p_76069_) Modifier and TypeMethodDescriptionprotected Map<Direction,
FluidState> FlowingFluid.getSpread
(LevelReader p_76080_, BlockPos p_76081_, BlockState p_76082_) Fluid.getStateDefinition()
Modifier and TypeMethodDescriptionprivate boolean
FlowingFluid.affectsFlow
(FluidState p_76095_) protected void
Fluid.animateTick
(Level p_76116_, BlockPos p_76117_, FluidState p_76118_, Random p_76119_) void
LavaFluid.animateTick
(Level p_76208_, BlockPos p_76209_, FluidState p_76210_, Random p_76211_) void
WaterFluid.animateTick
(Level p_76445_, BlockPos p_76446_, FluidState p_76447_, Random p_76448_) boolean
EmptyFluid.canBeReplacedWith
(FluidState p_75930_, BlockGetter p_75931_, BlockPos p_75932_, Fluid p_75933_, Direction p_75934_) protected abstract boolean
Fluid.canBeReplacedWith
(FluidState p_76127_, BlockGetter p_76128_, BlockPos p_76129_, Fluid p_76130_, Direction p_76131_) boolean
LavaFluid.canBeReplacedWith
(FluidState p_76233_, BlockGetter p_76234_, BlockPos p_76235_, Fluid p_76236_, Direction p_76237_) boolean
WaterFluid.canBeReplacedWith
(FluidState p_76458_, BlockGetter p_76459_, BlockPos p_76460_, Fluid p_76461_, Direction p_76462_) private boolean
FlowingFluid.canPassThrough
(BlockGetter p_75964_, Fluid p_75965_, BlockPos p_75966_, BlockState p_75967_, Direction p_75968_, BlockPos p_75969_, BlockState p_75970_, FluidState p_75971_) protected boolean
FlowingFluid.canSpreadTo
(BlockGetter p_75978_, BlockPos p_75979_, BlockState p_75980_, Direction p_75981_, BlockPos p_75982_, BlockState p_75983_, FluidState p_75984_, Fluid p_75985_) protected BlockState
EmptyFluid.createLegacyBlock
(FluidState p_75937_) protected abstract BlockState
Fluid.createLegacyBlock
(FluidState p_76136_) LavaFluid.createLegacyBlock
(FluidState p_76249_) WaterFluid.createLegacyBlock
(FluidState p_76466_) int
EmptyFluid.getAmount
(FluidState p_75946_) abstract int
FlowingFluid.getAmount
(FluidState p_164509_) abstract int
Fluid.getAmount
(FluidState p_76141_) int
LavaFluid.Flowing.getAmount
(FluidState p_76264_) int
LavaFluid.Source.getAmount
(FluidState p_76269_) int
WaterFluid.Flowing.getAmount
(FluidState p_76480_) int
WaterFluid.Source.getAmount
(FluidState p_76485_) EmptyFluid.getFlow
(BlockGetter p_75918_, BlockPos p_75919_, FluidState p_75920_) FlowingFluid.getFlow
(BlockGetter p_75987_, BlockPos p_75988_, FluidState p_75989_) protected abstract Vec3
Fluid.getFlow
(BlockGetter p_76110_, BlockPos p_76111_, FluidState p_76112_) float
EmptyFluid.getHeight
(FluidState p_75926_, BlockGetter p_75927_, BlockPos p_75928_) float
FlowingFluid.getHeight
(FluidState p_76050_, BlockGetter p_76051_, BlockPos p_76052_) abstract float
Fluid.getHeight
(FluidState p_76124_, BlockGetter p_76125_, BlockPos p_76126_) protected static int
FlowingFluid.getLegacyLevel
(FluidState p_76093_) float
EmptyFluid.getOwnHeight
(FluidState p_75924_) float
FlowingFluid.getOwnHeight
(FluidState p_76048_) abstract float
Fluid.getOwnHeight
(FluidState p_76123_) EmptyFluid.getShape
(FluidState p_75939_, BlockGetter p_75940_, BlockPos p_75941_) FlowingFluid.getShape
(FluidState p_76084_, BlockGetter p_76085_, BlockPos p_76086_) abstract VoxelShape
Fluid.getShape
(FluidState p_76137_, BlockGetter p_76138_, BlockPos p_76139_) protected int
FlowingFluid.getSpreadDelay
(Level p_75998_, BlockPos p_75999_, FluidState p_76000_, FluidState p_76001_) int
LavaFluid.getSpreadDelay
(Level p_76203_, BlockPos p_76204_, FluidState p_76205_, FluidState p_76206_) private static boolean
FlowingFluid.hasSameAbove
(FluidState p_76089_, BlockGetter p_76090_, BlockPos p_76091_) boolean
EmptyFluid.isSource
(FluidState p_75944_) abstract boolean
Fluid.isSource
(FluidState p_76140_) boolean
LavaFluid.Flowing.isSource
(FluidState p_76262_) boolean
LavaFluid.Source.isSource
(FluidState p_76267_) boolean
WaterFluid.Flowing.isSource
(FluidState p_76478_) boolean
WaterFluid.Source.isSource
(FluidState p_76483_) private boolean
FlowingFluid.isSourceBlockOfThisType
(FluidState p_76097_) protected void
Fluid.randomTick
(Level p_76132_, BlockPos p_76133_, FluidState p_76134_, Random p_76135_) void
LavaFluid.randomTick
(Level p_76239_, BlockPos p_76240_, FluidState p_76241_, Random p_76242_) protected final void
Fluid.registerDefaultState
(FluidState p_76143_) protected void
FlowingFluid.spread
(LevelAccessor p_76011_, BlockPos p_76012_, FluidState p_76013_) protected void
FlowingFluid.spreadTo
(LevelAccessor p_76005_, BlockPos p_76006_, BlockState p_76007_, Direction p_76008_, FluidState p_76009_) protected void
LavaFluid.spreadTo
(LevelAccessor p_76220_, BlockPos p_76221_, BlockState p_76222_, Direction p_76223_, FluidState p_76224_) private void
FlowingFluid.spreadToSides
(LevelAccessor p_76015_, BlockPos p_76016_, FluidState p_76017_, BlockState p_76018_) void
FlowingFluid.tick
(Level p_75995_, BlockPos p_75996_, FluidState p_75997_) protected void
Fluid.tick
(Level p_76113_, BlockPos p_76114_, FluidState p_76115_) Modifier and TypeMethodDescriptionprotected void
FlowingFluid.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> p_76046_) protected void
Fluid.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> p_76121_) protected void
LavaFluid.Flowing.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> p_76260_) protected void
WaterFluid.Flowing.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> p_76476_) protected int
FlowingFluid.getSlopeDistance
(LevelReader p_76027_, BlockPos p_76028_, int p_76029_, Direction p_76030_, BlockState p_76031_, BlockPos p_76032_, it.unimi.dsi.fastutil.shorts.Short2ObjectMap<com.mojang.datafixers.util.Pair<BlockState, FluidState>> p_76033_, it.unimi.dsi.fastutil.shorts.Short2BooleanMap p_76034_) ModifierConstructorDescriptionFluidState
(Fluid p_76149_, com.google.common.collect.ImmutableMap<Property<?>, Comparable<?>> p_76150_, com.mojang.serialization.MapCodec<FluidState> p_76151_) -
Uses of FluidState in net.minecraft.world.phys.shapes
Modifier and TypeFieldDescriptionprivate final Predicate<FluidState>
EntityCollisionContext.canStandOnFluid
Modifier and TypeMethodDescriptionboolean
CollisionContext.canStandOnFluid
(FluidState p_205110_, FluidState p_205111_) boolean
EntityCollisionContext.canStandOnFluid
(FluidState p_205115_, FluidState p_205116_) ModifierConstructorDescriptionprotected
EntityCollisionContext
(boolean p_198916_, double p_198917_, ItemStack p_198918_, Predicate<FluidState> p_198919_, Entity p_198920_) -
Uses of FluidState in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic TextureAtlasSprite[]
ForgeHooksClient.getFluidSprites
(BlockAndTintGetter level, BlockPos pos, FluidState fluidStateIn) -
Uses of FluidState in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault float
IForgeFluid.getExplosionResistance
(FluidState state, BlockGetter level, BlockPos pos, Explosion explosion) Location sensitive version of getExplosionResistancedefault Boolean
IForgeFluid.isAABBInsideLiquid
(FluidState state, LevelReader level, BlockPos pos, AABB boundingBox) Called when entities are moving to check if they are inside a liquiddefault Boolean
IForgeFluid.isAABBInsideMaterial
(FluidState state, LevelReader level, BlockPos pos, AABB 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, LevelReader level, BlockPos pos, Entity entity, double yToTest, HolderSet<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.onDestroyedByPlayer
(BlockState state, Level level, BlockPos pos, Player player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default boolean
IForgeBlockState.onDestroyedByPlayer
(Level level, BlockPos pos, Player player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default boolean
IForgeBlock.shouldDisplayFluidOverlay
(BlockState state, BlockAndTintGetter level, 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
(BlockAndTintGetter level, 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
(LevelAccessor worldIn, BlockPos pos, BlockState state, FluidState fluidStateIn) -
Uses of FluidState in net.minecraftforge.fluids
Modifier and TypeMethodDescriptionFluidAttributes.getStateForPlacement
(BlockAndTintGetter reader, BlockPos pos, FluidStack state) Modifier and TypeMethodDescriptionfinal boolean
FluidAttributes.canBePlacedInWorld
(BlockAndTintGetter reader, BlockPos pos, FluidState state) protected boolean
ForgeFlowingFluid.canBeReplacedWith
(FluidState state, BlockGetter level, 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
(BlockAndTintGetter reader, BlockPos pos, FluidState state) boolean
ForgeFlowingFluid.Flowing.isSource
(FluidState state) boolean
ForgeFlowingFluid.Source.isSource
(FluidState state) Modifier and TypeMethodDescriptionprotected void
ForgeFlowingFluid.Flowing.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> builder)