Uses of Interface
net.minecraft.world.level.BlockAndTintGetter
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
Extension interfaces for
client
-only classes.-
Uses of BlockAndTintGetter in net.minecraft.client.color.block
Modifier and TypeMethodDescriptionint
BlockColor.getColor
(BlockState p_92567_, BlockAndTintGetter p_92568_, BlockPos p_92569_, int p_92570_) int
BlockColors.getColor
(BlockState p_92578_, BlockAndTintGetter p_92579_, BlockPos p_92580_, int p_92581_) -
Uses of BlockAndTintGetter in net.minecraft.client.multiplayer
-
Uses of BlockAndTintGetter in net.minecraft.client.renderer
Modifier and TypeMethodDescriptionprivate static int
BiomeColors.getAverageColor
(BlockAndTintGetter p_108797_, BlockPos p_108798_, ColorResolver p_108799_) static int
BiomeColors.getAverageFoliageColor
(BlockAndTintGetter p_108805_, BlockPos p_108806_) static int
BiomeColors.getAverageGrassColor
(BlockAndTintGetter p_108794_, BlockPos p_108795_) static int
BiomeColors.getAverageWaterColor
(BlockAndTintGetter p_108812_, BlockPos p_108813_) static int
LevelRenderer.getLightColor
(BlockAndTintGetter p_109542_, BlockPos p_109543_) static int
LevelRenderer.getLightColor
(BlockAndTintGetter p_109538_, BlockState p_109539_, BlockPos p_109540_) -
Uses of BlockAndTintGetter in net.minecraft.client.renderer.block
Modifier and TypeMethodDescriptionvoid
ModelBlockRenderer.AmbientOcclusionFace.calculate
(BlockAndTintGetter p_111168_, BlockState p_111169_, BlockPos p_111170_, Direction p_111171_, float[] p_111172_, BitSet p_111173_, boolean p_111174_) private float
LiquidBlockRenderer.calculateAverageHeight
(BlockAndTintGetter p_203150_, Fluid p_203151_, float p_203152_, float p_203153_, float p_203154_, BlockPos p_203155_) private void
ModelBlockRenderer.calculateShape
(BlockAndTintGetter p_111040_, BlockState p_111041_, BlockPos p_111042_, int[] p_111043_, Direction p_111044_, float[] p_111045_, BitSet p_111046_) private float
LiquidBlockRenderer.getHeight
(BlockAndTintGetter p_203157_, Fluid p_203158_, BlockPos p_203159_) private float
LiquidBlockRenderer.getHeight
(BlockAndTintGetter p_203161_, Fluid p_203162_, BlockPos p_203163_, BlockState p_203164_, FluidState p_203165_) private int
LiquidBlockRenderer.getLightColor
(BlockAndTintGetter p_110946_, BlockPos p_110947_) int
ModelBlockRenderer.Cache.getLightColor
(BlockState p_111222_, BlockAndTintGetter p_111223_, BlockPos p_111224_) float
ModelBlockRenderer.Cache.getShadeBrightness
(BlockState p_111227_, BlockAndTintGetter p_111228_, BlockPos p_111229_) private void
ModelBlockRenderer.putQuadData
(BlockAndTintGetter p_111024_, BlockState p_111025_, BlockPos p_111026_, VertexConsumer p_111027_, PoseStack.Pose p_111028_, BakedQuad p_111029_, float p_111030_, float p_111031_, float p_111032_, float p_111033_, int p_111034_, int p_111035_, int p_111036_, int p_111037_, int p_111038_) void
BlockRenderDispatcher.renderBatched
(BlockState p_234356_, BlockPos p_234357_, BlockAndTintGetter p_234358_, PoseStack p_234359_, VertexConsumer p_234360_, boolean p_234361_, RandomSource p_234362_) void
BlockRenderDispatcher.renderBatched
(BlockState p_234356_, BlockPos p_234357_, BlockAndTintGetter p_234358_, PoseStack p_234359_, VertexConsumer p_234360_, boolean p_234361_, RandomSource p_234362_, ModelData modelData, RenderType renderType) void
BlockRenderDispatcher.renderBreakingTexture
(BlockState p_110919_, BlockPos p_110920_, BlockAndTintGetter p_110921_, PoseStack p_110922_, VertexConsumer p_110923_) Deprecated.void
BlockRenderDispatcher.renderBreakingTexture
(BlockState p_110919_, BlockPos p_110920_, BlockAndTintGetter p_110921_, PoseStack p_110922_, VertexConsumer p_110923_, ModelData modelData) void
BlockRenderDispatcher.renderLiquid
(BlockPos p_234364_, BlockAndTintGetter p_234365_, VertexConsumer p_234366_, BlockState p_234367_, FluidState p_234368_) private void
ModelBlockRenderer.renderModelFaceAO
(BlockAndTintGetter p_111013_, BlockState p_111014_, BlockPos p_111015_, PoseStack p_111016_, VertexConsumer p_111017_, List<BakedQuad> p_111018_, float[] p_111019_, BitSet p_111020_, ModelBlockRenderer.AmbientOcclusionFace p_111021_, int p_111022_) private void
ModelBlockRenderer.renderModelFaceFlat
(BlockAndTintGetter p_111002_, BlockState p_111003_, BlockPos p_111004_, int p_111005_, int p_111006_, boolean p_111007_, PoseStack p_111008_, VertexConsumer p_111009_, List<BakedQuad> p_111010_, BitSet p_111011_) static boolean
LiquidBlockRenderer.shouldRenderFace
(BlockAndTintGetter p_203167_, BlockPos p_203168_, FluidState p_203169_, BlockState p_203170_, Direction p_203171_, FluidState p_203172_) void
LiquidBlockRenderer.tesselate
(BlockAndTintGetter p_234370_, BlockPos p_234371_, VertexConsumer p_234372_, BlockState p_234373_, FluidState p_234374_) void
ModelBlockRenderer.tesselateBlock
(BlockAndTintGetter p_234380_, BakedModel p_234381_, BlockState p_234382_, BlockPos p_234383_, PoseStack p_234384_, VertexConsumer p_234385_, boolean p_234386_, RandomSource p_234387_, long p_234388_, int p_234389_) Deprecated.void
ModelBlockRenderer.tesselateBlock
(BlockAndTintGetter p_234380_, BakedModel p_234381_, BlockState p_234382_, BlockPos p_234383_, PoseStack p_234384_, VertexConsumer p_234385_, boolean p_234386_, RandomSource p_234387_, long p_234388_, int p_234389_, ModelData modelData, RenderType renderType) void
ModelBlockRenderer.tesselateWithAO
(BlockAndTintGetter p_234391_, BakedModel p_234392_, BlockState p_234393_, BlockPos p_234394_, PoseStack p_234395_, VertexConsumer p_234396_, boolean p_234397_, RandomSource p_234398_, long p_234399_, int p_234400_) Deprecated.void
ModelBlockRenderer.tesselateWithAO
(BlockAndTintGetter p_234391_, BakedModel p_234392_, BlockState p_234393_, BlockPos p_234394_, PoseStack p_234395_, VertexConsumer p_234396_, boolean p_234397_, RandomSource p_234398_, long p_234399_, int p_234400_, ModelData modelData, RenderType renderType) void
ModelBlockRenderer.tesselateWithoutAO
(BlockAndTintGetter p_234402_, BakedModel p_234403_, BlockState p_234404_, BlockPos p_234405_, PoseStack p_234406_, VertexConsumer p_234407_, boolean p_234408_, RandomSource p_234409_, long p_234410_, int p_234411_) Deprecated.void
ModelBlockRenderer.tesselateWithoutAO
(BlockAndTintGetter p_234402_, BakedModel p_234403_, BlockState p_234404_, BlockPos p_234405_, PoseStack p_234406_, VertexConsumer p_234407_, boolean p_234408_, RandomSource p_234409_, long p_234410_, int p_234411_, ModelData modelData, RenderType renderType) -
Uses of BlockAndTintGetter in net.minecraft.client.renderer.chunk
-
Uses of BlockAndTintGetter in net.minecraft.client.resources.model
Modifier and TypeMethodDescriptionMultiPartBakedModel.getModelData
(BlockAndTintGetter level, BlockPos pos, BlockState state, ModelData modelData) -
Uses of BlockAndTintGetter in net.minecraft.server.level
-
Uses of BlockAndTintGetter in net.minecraft.world.entity.animal
Modifier and TypeMethodDescriptionprotected static boolean
Animal.isBrightEnoughToSpawn
(BlockAndTintGetter p_186210_, BlockPos p_186211_) -
Uses of BlockAndTintGetter in net.minecraft.world.level
Modifier and TypeInterfaceDescriptioninterface
interface
interface
interface
interface
interface
-
Uses of BlockAndTintGetter in net.neoforged.neoforge.client
Modifier and TypeMethodDescriptionstatic boolean
ClientHooks.calculateFaceWithoutAO
(BlockAndTintGetter getter, BlockState state, BlockPos pos, BakedQuad quad, boolean isFaceCubic, float[] brightness, int[] lightmap) -
Uses of BlockAndTintGetter in net.neoforged.neoforge.client.event
Modifier and TypeFieldDescriptionprivate final BlockAndTintGetter
AddSectionGeometryEvent.SectionRenderingContext.region
ModifierConstructorDescriptionSectionRenderingContext
(Function<RenderType, VertexConsumer> getOrCreateLayer, BlockAndTintGetter region, PoseStack poseStack) -
Uses of BlockAndTintGetter in net.neoforged.neoforge.client.extensions
Modifier and TypeMethodDescriptiondefault ModelData
IBakedModelExtension.getModelData
(BlockAndTintGetter level, BlockPos pos, BlockState state, ModelData modelData) -
Uses of BlockAndTintGetter in net.neoforged.neoforge.client.extensions.common
Modifier and TypeMethodDescriptiondefault ResourceLocation
IClientFluidTypeExtensions.getFlowingTexture
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the reference of the texture to apply to a flowing fluid.default ResourceLocation
IClientFluidTypeExtensions.getOverlayTexture
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the reference of the texture to apply to a fluid directly touching a non-opaque block other than air.default ResourceLocation
IClientFluidTypeExtensions.getStillTexture
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the reference of the texture to apply to a source fluid.default int
IClientFluidTypeExtensions.getTintColor
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the tint applied to the fluid's textures.default boolean
IClientFluidTypeExtensions.renderFluid
(FluidState fluidState, BlockAndTintGetter getter, BlockPos pos, VertexConsumer vertexConsumer, BlockState blockState) Called to allow rendering custom quads for a fluid during chunk meshing. -
Uses of BlockAndTintGetter in net.neoforged.neoforge.client.model
Modifier and TypeMethodDescriptionBakedModelWrapper.getModelData
(BlockAndTintGetter level, BlockPos pos, BlockState state, ModelData modelData) CompositeModel.Baked.getModelData
(BlockAndTintGetter level, BlockPos pos, BlockState state, ModelData modelData) -
Uses of BlockAndTintGetter in net.neoforged.neoforge.client.model.data
Modifier and TypeMethodDescriptionstatic ModelData
MultipartModelData.create
(List<org.apache.commons.lang3.tuple.Pair<Predicate<BlockState>, BakedModel>> selectors, BitSet bitset, BlockAndTintGetter level, BlockPos pos, BlockState state, ModelData tileModelData) -
Uses of BlockAndTintGetter in net.neoforged.neoforge.client.model.lighting
Modifier and TypeMethodDescriptionprotected void
FlatQuadLighter.computeLightingAt
(BlockAndTintGetter level, BlockPos pos, BlockState state) protected abstract void
QuadLighter.computeLightingAt
(BlockAndTintGetter level, BlockPos pos, BlockState state) protected void
SmoothQuadLighter.computeLightingAt
(BlockAndTintGetter level, BlockPos origin, BlockState state) static boolean
LightPipelineAwareModelBlockRenderer.render
(VertexConsumer vertexConsumer, QuadLighter lighter, BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) final void
QuadLighter.setup
(BlockAndTintGetter level, BlockPos pos, BlockState state) Set up this lighter to light quads of the given block.void
LightPipelineAwareModelBlockRenderer.tesselateWithAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer vertexConsumer, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) void
LightPipelineAwareModelBlockRenderer.tesselateWithoutAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer vertexConsumer, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) -
Uses of BlockAndTintGetter in net.neoforged.neoforge.client.textures
Modifier and TypeMethodDescriptionstatic TextureAtlasSprite[]
FluidSpriteCache.getFluidSprites
(BlockAndTintGetter level, BlockPos pos, FluidState fluid) Returns an array holding the still sprite, the flowing sprite and the overlay sprite (if specified, otherwise null) of the given fluid at the given position. -
Uses of BlockAndTintGetter in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault BlockState
IBlockExtension.getAppearance
(BlockState state, BlockAndTintGetter level, BlockPos pos, Direction side, @Nullable BlockState queryState, @Nullable BlockPos queryPos) Returns theBlockState
that this block reports to look like on the given side, for querying by other mods.default BlockState
IBlockStateExtension.getAppearance
(BlockAndTintGetter level, BlockPos pos, Direction side, @Nullable BlockState queryState, @Nullable BlockPos queryPos) Returns theBlockState
that this state reports to look like on the given side for querying by other mods.default boolean
IBlockExtension.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
IBlockStateExtension.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 BlockAndTintGetter in net.neoforged.neoforge.fluids
Modifier and TypeMethodDescriptionfinal boolean
FluidType.canBePlacedInLevel
(BlockAndTintGetter getter, BlockPos pos, FluidState state) Returns whether the fluid can be placed in the level.final boolean
FluidType.canBePlacedInLevel
(BlockAndTintGetter getter, BlockPos pos, FluidStack stack) Returns whether the fluid can be placed in the level.FluidType.getBlockForFluidState
(BlockAndTintGetter getter, BlockPos pos, FluidState state) Returns the associatedBlockState
for aFluidState
.int
FluidType.getDensity
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the density of the fluid.int
FluidType.getLightLevel
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the light level emitted by the fluid.FluidType.getStateForPlacement
(BlockAndTintGetter getter, BlockPos pos, FluidStack stack) Returns theFluidState
when aFluidStack
is trying to place it.int
FluidType.getTemperature
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the temperature of the fluid.int
FluidType.getViscosity
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the viscosity, or thickness, of the fluid.