RangeSelectItemModelProperties .java

net.minecraft.client.renderer.item.properties.numeric.RangeSelectItemModelProperties (class): members: ID_MAPPER, bootstrap, MAP_CODEC. strings: "compass".

net.minecraft.client.renderer.item.properties.numericclass34 linesclient1.7 KB

API Surface (1)

void bootstrap()

Fields & Constants (2)

ID_MAPPER
MAP_CODEC

String literals (11)

"property"
"custom_model_data"
"bundle/fullness"
"damage"
"cooldown"
"time"
"compass"
"crossbow/pull"
"use_cycle"
"use_duration"
"count"

Code Graph: Dependencies (3)

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

Full Source

RangeSelectItemModelProperties.java34 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.renderer.item.properties.numeric;
2
3
import com.mojang.serialization.MapCodec;
4
import net.fabricmc.api.EnvType;
5
import net.fabricmc.api.Environment;
6
import net.minecraft.resources.Identifier;
7
import net.minecraft.util.ExtraCodecs.LateBoundIdMapper;
8
9
/**
10
 * Access widened by fabric-transitive-access-wideners-v1 to accessible
11
 */
12
@Environment(EnvType.CLIENT)
13
public class RangeSelectItemModelProperties {
14
	/**
15
	 * Access widened by fabric-transitive-access-wideners-v1 to accessible
16
	 */
17
	public static final LateBoundIdMapper<Identifier, MapCodec<? extends RangeSelectItemModelProperty>> ID_MAPPER = new LateBoundIdMapper<>();
18
	public static final MapCodec<RangeSelectItemModelProperty> MAP_CODEC = ID_MAPPER.codec(Identifier.CODEC)
19
		.dispatchMap("property", RangeSelectItemModelProperty::type, c -> c);
20
21
	public static void bootstrap() {
22
		ID_MAPPER.put(Identifier.withDefaultNamespace("custom_model_data"), CustomModelDataProperty.MAP_CODEC);
23
		ID_MAPPER.put(Identifier.withDefaultNamespace("bundle/fullness"), BundleFullness.MAP_CODEC);
24
		ID_MAPPER.put(Identifier.withDefaultNamespace("damage"), Damage.MAP_CODEC);
25
		ID_MAPPER.put(Identifier.withDefaultNamespace("cooldown"), Cooldown.MAP_CODEC);
26
		ID_MAPPER.put(Identifier.withDefaultNamespace("time"), Time.MAP_CODEC);
27
		ID_MAPPER.put(Identifier.withDefaultNamespace("compass"), CompassAngle.MAP_CODEC);
28
		ID_MAPPER.put(Identifier.withDefaultNamespace("crossbow/pull"), CrossbowPull.MAP_CODEC);
29
		ID_MAPPER.put(Identifier.withDefaultNamespace("use_cycle"), UseCycle.MAP_CODEC);
30
		ID_MAPPER.put(Identifier.withDefaultNamespace("use_duration"), UseDuration.MAP_CODEC);
31
		ID_MAPPER.put(Identifier.withDefaultNamespace("count"), Count.MAP_CODEC);
32
	}
33
}
34

Decompiled Minecraft 26.3 source of RangeSelectItemModelProperties (net/minecraft/client/renderer/item/properties/numeric/RangeSelectItemModelProperties.java) with Mojang official mappings, stored verbatim on the site.