BlockTintSource .java

net.minecraft.client.color.block.BlockTintSource (interface): members: colorAsTerrainParticle, relevantProperties, colorInWorld, color. imports: Property.

net.minecraft.client.color.blockinterface27 linesclient827 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (4)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

BlockTintSource.java27 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.color.block;
2
3
import java.util.Set;
4
import net.fabricmc.api.EnvType;
5
import net.fabricmc.api.Environment;
6
import net.minecraft.client.renderer.block.BlockAndTintGetter;
7
import net.minecraft.core.BlockPos;
8
import net.minecraft.world.level.block.state.BlockState;
9
import net.minecraft.world.level.block.state.properties.Property;
10
11
@Environment(EnvType.CLIENT)
12
public interface BlockTintSource {
13
	int color(BlockState state);
14
15
	default int colorInWorld(final BlockState state, final BlockAndTintGetter level, final BlockPos pos) {
16
		return this.color(state);
17
	}
18
19
	default int colorAsTerrainParticle(final BlockState state, final BlockAndTintGetter level, final BlockPos pos) {
20
		return this.colorInWorld(state, level, pos);
21
	}
22
23
	default Set<Property<?>> relevantProperties() {
24
		return Set.of();
25
	}
26
}
27

Decompiled Minecraft 26.3 source of BlockTintSource (net/minecraft/client/color/block/BlockTintSource.java) with Mojang official mappings, stored verbatim on the site.