ValueInput .java

net.minecraft.world.level.storage.ValueInput (interface): members: TypedInputList, ValueInputList, childrenListOrEmpty, childOrEmpty, listOrEmpty, getLong.

net.minecraft.world.level.storageinterface67 linescommonextends FabricValueInput1.6 KB

API Surface (0)

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

Code Graph: Dependencies (1)

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

Full Source

ValueInput.java67 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 java.util.Optional;
6
import java.util.stream.Stream;
7
import net.fabricmc.fabric.api.serialization.v1.value.FabricValueInput;
8
import net.minecraft.core.HolderLookup;
9
10
public interface ValueInput extends FabricValueInput {
11
	<T> Optional<T> read(String name, Codec<T> codec);
12
13
	@Deprecated
14
	<T> Optional<T> read(MapCodec<T> codec);
15
16
	Optional<ValueInput> child(String name);
17
18
	ValueInput childOrEmpty(String name);
19
20
	Optional<ValueInput.ValueInputList> childrenList(String name);
21
22
	ValueInput.ValueInputList childrenListOrEmpty(String name);
23
24
	<T> Optional<ValueInput.TypedInputList<T>> list(String name, Codec<T> codec);
25
26
	<T> ValueInput.TypedInputList<T> listOrEmpty(String name, Codec<T> codec);
27
28
	boolean getBooleanOr(String name, boolean defaultValue);
29
30
	byte getByteOr(String name, byte defaultValue);
31
32
	int getShortOr(String name, short defaultValue);
33
34
	Optional<Integer> getInt(String name);
35
36
	int getIntOr(String name, int defaultValue);
37
38
	long getLongOr(String name, long defaultValue);
39
40
	Optional<Long> getLong(String name);
41
42
	float getFloatOr(String name, float defaultValue);
43
44
	double getDoubleOr(String name, double defaultValue);
45
46
	Optional<String> getString(String name);
47
48
	String getStringOr(String name, String defaultValue);
49
50
	Optional<int[]> getIntArray(String name);
51
52
	@Deprecated
53
	HolderLookup.Provider lookup();
54
55
	interface TypedInputList<T> extends Iterable<T> {
56
		boolean isEmpty();
57
58
		Stream<T> stream();
59
	}
60
61
	interface ValueInputList extends Iterable<ValueInput> {
62
		boolean isEmpty();
63
64
		Stream<ValueInput> stream();
65
	}
66
}
67

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