ValueOutput .java

net.minecraft.world.level.storage.ValueOutput (interface): members: TypedOutputList, ValueOutputList, storeNullable, putIntArray, putBoolean, putDouble.

net.minecraft.world.level.storageinterface58 linescommonextends FabricValueOutput1.2 KB

API Surface (0)

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

Full Source

ValueOutput.java58 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.storage;
2
3
import com.mojang.serialization.Codec;
4
import com.mojang.serialization.MapCodec;
5
import net.fabricmc.fabric.api.serialization.v1.value.FabricValueOutput;
6
import org.jspecify.annotations.Nullable;
7
8
public interface ValueOutput extends FabricValueOutput {
9
	<T> void store(String name, Codec<T> codec, T value);
10
11
	<T> void storeNullable(String name, Codec<T> codec, @Nullable T value);
12
13
	@Deprecated
14
	<T> void store(MapCodec<T> codec, T value);
15
16
	void putBoolean(String name, boolean value);
17
18
	void putByte(String name, byte value);
19
20
	void putShort(String name, short value);
21
22
	void putInt(String name, int value);
23
24
	void putLong(String name, long value);
25
26
	void putFloat(String name, float value);
27
28
	void putDouble(String name, double value);
29
30
	void putString(String name, String value);
31
32
	void putIntArray(String name, int[] value);
33
34
	ValueOutput child(String name);
35
36
	ValueOutput.ValueOutputList childrenList(String name);
37
38
	<T> ValueOutput.TypedOutputList<T> list(String name, Codec<T> codec);
39
40
	void discard(String name);
41
42
	boolean isEmpty();
43
44
	interface TypedOutputList<T> {
45
		void add(T value);
46
47
		boolean isEmpty();
48
	}
49
50
	interface ValueOutputList {
51
		ValueOutput addChild();
52
53
		void discardLast();
54
55
		boolean isEmpty();
56
	}
57
}
58

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