Class ModelProvider

java.lang.Object
net.minecraft.data.client.ModelProvider
All Implemented Interfaces:
DataProvider

public class ModelProvider extends Object implements DataProvider
Mappings:
Namespace Name
official jj
intermediary net/minecraft/class_4916
named net/minecraft/data/client/ModelProvider
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Ljj;b:Lorg/slf4j/Logger;
      intermediary field_22845 Lnet/minecraft/class_4916;field_22845:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/data/client/ModelProvider;LOGGER:Lorg/slf4j/Logger;
    • GSON

      private static final Gson GSON
      Mappings:
      Namespace Name Mixin selector
      official c Ljj;c:Lcom/google/gson/Gson;
      intermediary field_22846 Lnet/minecraft/class_4916;field_22846:Lcom/google/gson/Gson;
      named GSON Lnet/minecraft/data/client/ModelProvider;GSON:Lcom/google/gson/Gson;
    • generator

      private final DataGenerator generator
      Mappings:
      Namespace Name Mixin selector
      official d Ljj;d:Lik;
      intermediary field_22847 Lnet/minecraft/class_4916;field_22847:Lnet/minecraft/class_2403;
      named generator Lnet/minecraft/data/client/ModelProvider;generator:Lnet/minecraft/data/DataGenerator;
  • Constructor Details

    • ModelProvider

      public ModelProvider(DataGenerator generator)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ljj;<init>(Lik;)V
      intermediary <init> Lnet/minecraft/class_4916;<init>(Lnet/minecraft/class_2403;)V
      named <init> Lnet/minecraft/data/client/ModelProvider;<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 Lil;a(Lim;)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 Ljj;a(Lim;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/ModelProvider;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 Ljj;a(Ljava/nio/file/Path;Lcdq;)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/ModelProvider;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 Ljj;a(Ljava/nio/file/Path;Lyt;)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/ModelProvider;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 Lil;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;