Palette .java

net.minecraft.world.level.chunk.Palette (interface, 29 lines): members: valueFor, idFor, getSerializedSize, maybeHas, getSize, Factory, read, copy, write.

net.minecraft.world.level.chunkinterface29 linescommon618 B

API Surface (0)

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

Code Graph: Dependencies (3)

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

Full Source

Palette.java29 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.chunk;
2
3
import java.util.List;
4
import java.util.function.Predicate;
5
import net.minecraft.core.IdMap;
6
import net.minecraft.network.FriendlyByteBuf;
7
8
public interface Palette<T> {
9
	int idFor(T value, PaletteResize<T> resizeHandler);
10
11
	boolean maybeHas(Predicate<T> predicate);
12
13
	T valueFor(int index);
14
15
	void read(FriendlyByteBuf buffer, IdMap<T> globalMap);
16
17
	void write(FriendlyByteBuf buffer, IdMap<T> globalMap);
18
19
	int getSerializedSize(IdMap<T> globalMap);
20
21
	int getSize();
22
23
	Palette<T> copy();
24
25
	interface Factory {
26
		<A> Palette<A> create(int bits, List<A> paletteEntries);
27
	}
28
}
29

Decompiled Minecraft 26.3 source of Palette (net/minecraft/world/level/chunk/Palette.java) with Mojang official mappings, stored verbatim on the site.