Class Model

java.lang.Object
net.minecraft.data.client.Model

public class Model extends Object
Mappings:
Namespace Name
named net/minecraft/data/client/Model
intermediary net/minecraft/class_4942
official og
  • Field Details

    • parent

      private final Optional<Identifier> parent
      Mappings:
      Namespace Name Mixin selector
      named parent Lnet/minecraft/data/client/Model;parent:Ljava/util/Optional;
      intermediary field_22901 Lnet/minecraft/class_4942;field_22901:Ljava/util/Optional;
      official a Log;a:Ljava/util/Optional;
    • requiredTextures

      private final Set<TextureKey> requiredTextures
      Mappings:
      Namespace Name Mixin selector
      named requiredTextures Lnet/minecraft/data/client/Model;requiredTextures:Ljava/util/Set;
      intermediary field_22902 Lnet/minecraft/class_4942;field_22902:Ljava/util/Set;
      official b Log;b:Ljava/util/Set;
    • variant

      private final Optional<String> variant
      Mappings:
      Namespace Name Mixin selector
      named variant Lnet/minecraft/data/client/Model;variant:Ljava/util/Optional;
      intermediary field_22903 Lnet/minecraft/class_4942;field_22903:Ljava/util/Optional;
      official c Log;c:Ljava/util/Optional;
  • Constructor Details

    • Model

      public Model(Optional<Identifier> parent, Optional<String> variant, TextureKey[] requiredTextureKeys)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/data/client/Model;<init>(Ljava/util/Optional;Ljava/util/Optional;[Lnet/minecraft/data/client/TextureKey;)V
      intermediary <init> Lnet/minecraft/class_4942;<init>(Ljava/util/Optional;Ljava/util/Optional;[Lnet/minecraft/class_4945;)V
      official <init> Log;<init>(Ljava/util/Optional;Ljava/util/Optional;[Loj;)V
  • Method Details

    • getBlockSubModelId

      public Identifier getBlockSubModelId(Block block)
      Mappings:
      Namespace Name Mixin selector
      named getBlockSubModelId Lnet/minecraft/data/client/Model;getBlockSubModelId(Lnet/minecraft/block/Block;)Lnet/minecraft/util/Identifier;
      intermediary method_54828 Lnet/minecraft/class_4942;method_54828(Lnet/minecraft/class_2248;)Lnet/minecraft/class_2960;
      official a Log;a(Ldfa;)Lalf;
    • upload

      public Identifier upload(Block block, TextureMap textures, BiConsumer<Identifier,Supplier<JsonElement>> modelCollector)
      Mappings:
      Namespace Name Mixin selector
      named upload Lnet/minecraft/data/client/Model;upload(Lnet/minecraft/block/Block;Lnet/minecraft/data/client/TextureMap;Ljava/util/function/BiConsumer;)Lnet/minecraft/util/Identifier;
      intermediary method_25846 Lnet/minecraft/class_4942;method_25846(Lnet/minecraft/class_2248;Lnet/minecraft/class_4944;Ljava/util/function/BiConsumer;)Lnet/minecraft/class_2960;
      official a Log;a(Ldfa;Loi;Ljava/util/function/BiConsumer;)Lalf;
    • upload

      public Identifier upload(Block block, String suffix, TextureMap textures, BiConsumer<Identifier,Supplier<JsonElement>> modelCollector)
      Mappings:
      Namespace Name Mixin selector
      named upload Lnet/minecraft/data/client/Model;upload(Lnet/minecraft/block/Block;Ljava/lang/String;Lnet/minecraft/data/client/TextureMap;Ljava/util/function/BiConsumer;)Lnet/minecraft/util/Identifier;
      intermediary method_25847 Lnet/minecraft/class_4942;method_25847(Lnet/minecraft/class_2248;Ljava/lang/String;Lnet/minecraft/class_4944;Ljava/util/function/BiConsumer;)Lnet/minecraft/class_2960;
      official a Log;a(Ldfa;Ljava/lang/String;Loi;Ljava/util/function/BiConsumer;)Lalf;
    • uploadWithoutVariant

      public Identifier uploadWithoutVariant(Block block, String suffix, TextureMap textures, BiConsumer<Identifier,Supplier<JsonElement>> modelCollector)
      Mappings:
      Namespace Name Mixin selector
      named uploadWithoutVariant Lnet/minecraft/data/client/Model;uploadWithoutVariant(Lnet/minecraft/block/Block;Ljava/lang/String;Lnet/minecraft/data/client/TextureMap;Ljava/util/function/BiConsumer;)Lnet/minecraft/util/Identifier;
      intermediary method_25853 Lnet/minecraft/class_4942;method_25853(Lnet/minecraft/class_2248;Ljava/lang/String;Lnet/minecraft/class_4944;Ljava/util/function/BiConsumer;)Lnet/minecraft/class_2960;
      official b Log;b(Ldfa;Ljava/lang/String;Loi;Ljava/util/function/BiConsumer;)Lalf;
    • upload

      public Identifier upload(Identifier id, TextureMap textures, BiConsumer<Identifier,Supplier<JsonElement>> modelCollector)
      Mappings:
      Namespace Name Mixin selector
      named upload Lnet/minecraft/data/client/Model;upload(Lnet/minecraft/util/Identifier;Lnet/minecraft/data/client/TextureMap;Ljava/util/function/BiConsumer;)Lnet/minecraft/util/Identifier;
      intermediary method_25852 Lnet/minecraft/class_4942;method_25852(Lnet/minecraft/class_2960;Lnet/minecraft/class_4944;Ljava/util/function/BiConsumer;)Lnet/minecraft/class_2960;
      official a Log;a(Lalf;Loi;Ljava/util/function/BiConsumer;)Lalf;
    • upload

      public Identifier upload(Identifier id, TextureMap textures, BiConsumer<Identifier,Supplier<JsonElement>> modelCollector, Model.JsonFactory jsonFactory)
      Mappings:
      Namespace Name Mixin selector
      named upload Lnet/minecraft/data/client/Model;upload(Lnet/minecraft/util/Identifier;Lnet/minecraft/data/client/TextureMap;Ljava/util/function/BiConsumer;Lnet/minecraft/data/client/Model$JsonFactory;)Lnet/minecraft/util/Identifier;
      intermediary method_48525 Lnet/minecraft/class_4942;method_48525(Lnet/minecraft/class_2960;Lnet/minecraft/class_4944;Ljava/util/function/BiConsumer;Lnet/minecraft/class_4942$class_8073;)Lnet/minecraft/class_2960;
      official a Log;a(Lalf;Loi;Ljava/util/function/BiConsumer;Log$a;)Lalf;
    • createJson

      public JsonObject createJson(Identifier id, Map<TextureKey,Identifier> textures)
      Mappings:
      Namespace Name Mixin selector
      named createJson Lnet/minecraft/data/client/Model;createJson(Lnet/minecraft/util/Identifier;Ljava/util/Map;)Lcom/google/gson/JsonObject;
      intermediary method_48524 Lnet/minecraft/class_4942;method_48524(Lnet/minecraft/class_2960;Ljava/util/Map;)Lcom/google/gson/JsonObject;
      official a Log;a(Lalf;Ljava/util/Map;)Lcom/google/gson/JsonObject;
    • createTextureMap

      private Map<TextureKey,Identifier> createTextureMap(TextureMap textures)
      Mappings:
      Namespace Name Mixin selector
      named createTextureMap Lnet/minecraft/data/client/Model;createTextureMap(Lnet/minecraft/data/client/TextureMap;)Ljava/util/Map;
      intermediary method_25850 Lnet/minecraft/class_4942;method_25850(Lnet/minecraft/class_4944;)Ljava/util/Map;
      official a Log;a(Loi;)Ljava/util/Map;