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 je
intermediary net/minecraft/class_4916
named net/minecraft/data/client/BlockStateDefinitionProvider
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lje;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

      private static final Gson GSON
      Mappings:
      Namespace Name Mixin selector
      official c Lje;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

      private final DataGenerator generator
      Mappings:
      Namespace Name Mixin selector
      official d Lje;d:Lie;
      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

      public BlockStateDefinitionProvider(DataGenerator generator)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lje;<init>(Lie;)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

      public void run(DataCache cache)
      Specified by:
      run in interface DataProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lig;a(Lih;)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 Lje;a(Lih;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

      private static Path getBlockStateJsonPath(Path root, Block block)
      Mappings:
      Namespace Name Mixin selector
      official a Lje;a(Ljava/nio/file/Path;Lccy;)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

      private static Path getModelJsonPath(Path root, Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official a Lje;a(Ljava/nio/file/Path;Lyh;)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

      public String getName()
      Specified by:
      getName in interface DataProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lig;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;