Package net.minecraft.data.client
Class BlockStateDefinitionProvider
java.lang.Object
net.minecraft.data.client.BlockStateDefinitionProvider
- All Implemented Interfaces:
DataProvider
public class BlockStateDefinitionProvider extends Object implements DataProvider
- Mappings:
Namespace Name official ir
intermediary net/minecraft/class_4916
named net/minecraft/data/client/BlockStateDefinitionProvider
-
Field Summary
Fields Modifier and Type Field Description private DataGenerator
generator
private static Gson
GSON
private static Logger
LOGGER
Fields inherited from interface net.minecraft.data.DataProvider
SHA1
-
Constructor Summary
Constructors Constructor Description BlockStateDefinitionProvider(DataGenerator generator)
-
Method Summary
Modifier and Type Method Description private static Path
getBlockStateJsonPath(Path root, Block block)
private static Path
getModelJsonPath(Path root, Identifier id)
String
getName()
void
run(DataCache cache)
private <T> void
writeJsons(DataCache cache, Path root, Map<T,? extends Supplier<JsonElement>> jsons, BiFunction<Path,T,Path> locator)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official b
Lir;b:Lorg/apache/logging/log4j/Logger;
intermediary field_22845
Lnet/minecraft/class_4916;field_22845:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/data/client/BlockStateDefinitionProvider;LOGGER:Lorg/apache/logging/log4j/Logger;
-
GSON
- Mappings:
Namespace Name Mixin selector official c
Lir;c:Lcom/google/gson/Gson;
intermediary field_22846
Lnet/minecraft/class_4916;field_22846:Lcom/google/gson/Gson;
named GSON
Lnet/minecraft/data/client/BlockStateDefinitionProvider;GSON:Lcom/google/gson/Gson;
-
generator
- Mappings:
Namespace Name Mixin selector official d
Lir;d:Lhs;
intermediary field_22847
Lnet/minecraft/class_4916;field_22847:Lnet/minecraft/class_2403;
named generator
Lnet/minecraft/data/client/BlockStateDefinitionProvider;generator:Lnet/minecraft/data/DataGenerator;
-
-
Constructor Details
-
BlockStateDefinitionProvider
- Mappings:
Namespace Name Mixin selector official <init>
Lir;<init>(Lhs;)V
intermediary <init>
Lnet/minecraft/class_4916;<init>(Lnet/minecraft/class_2403;)V
named <init>
Lnet/minecraft/data/client/BlockStateDefinitionProvider;<init>(Lnet/minecraft/data/DataGenerator;)V
-
-
Method Details
-
run
- Specified by:
run
in interfaceDataProvider
- Mappings:
Namespace Name Mixin selector official a
Lht;a(Lhu;)V
intermediary method_10319
Lnet/minecraft/class_2405;method_10319(Lnet/minecraft/class_2408;)V
named run
Lnet/minecraft/data/DataProvider;run(Lnet/minecraft/data/DataCache;)V
-
writeJsons
private <T> void writeJsons(DataCache cache, Path root, Map<T,? extends Supplier<JsonElement>> jsons, BiFunction<Path,T,Path> locator)- Mappings:
Namespace Name Mixin selector official a
Lir;a(Lhu;Ljava/nio/file/Path;Ljava/util/Map;Ljava/util/function/BiFunction;)V
intermediary method_25735
Lnet/minecraft/class_4916;method_25735(Lnet/minecraft/class_2408;Ljava/nio/file/Path;Ljava/util/Map;Ljava/util/function/BiFunction;)V
named writeJsons
Lnet/minecraft/data/client/BlockStateDefinitionProvider;writeJsons(Lnet/minecraft/data/DataCache;Ljava/nio/file/Path;Ljava/util/Map;Ljava/util/function/BiFunction;)V
-
getBlockStateJsonPath
- Mappings:
Namespace Name Mixin selector official a
Lir;a(Ljava/nio/file/Path;Lbwu;)Ljava/nio/file/Path;
intermediary method_25736
Lnet/minecraft/class_4916;method_25736(Ljava/nio/file/Path;Lnet/minecraft/class_2248;)Ljava/nio/file/Path;
named getBlockStateJsonPath
Lnet/minecraft/data/client/BlockStateDefinitionProvider;getBlockStateJsonPath(Ljava/nio/file/Path;Lnet/minecraft/block/Block;)Ljava/nio/file/Path;
-
getModelJsonPath
- Mappings:
Namespace Name Mixin selector official a
Lir;a(Ljava/nio/file/Path;Lwb;)Ljava/nio/file/Path;
intermediary method_25737
Lnet/minecraft/class_4916;method_25737(Ljava/nio/file/Path;Lnet/minecraft/class_2960;)Ljava/nio/file/Path;
named getModelJsonPath
Lnet/minecraft/data/client/BlockStateDefinitionProvider;getModelJsonPath(Ljava/nio/file/Path;Lnet/minecraft/util/Identifier;)Ljava/nio/file/Path;
-
getName
- Specified by:
getName
in interfaceDataProvider
- Mappings:
Namespace Name Mixin selector official a
Lht;a()Ljava/lang/String;
intermediary method_10321
Lnet/minecraft/class_2405;method_10321()Ljava/lang/String;
named getName
Lnet/minecraft/data/DataProvider;getName()Ljava/lang/String;
-