Class Model

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

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

    • parent

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

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

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

    • Model

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

    • upload

      public Identifier upload(Block block, Texture texture, BiConsumer<Identifier,Supplier<JsonElement>> modelCollector)
      Mappings:
      Namespace Name Mixin selector
      official a Ljo;a(Lbzo;Ljq;Ljava/util/function/BiConsumer;)Lww;
      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;
      named upload Lnet/minecraft/data/client/model/Model;upload(Lnet/minecraft/block/Block;Lnet/minecraft/data/client/model/Texture;Ljava/util/function/BiConsumer;)Lnet/minecraft/util/Identifier;
    • upload

      public Identifier upload(Block block, String suffix, Texture texture, BiConsumer<Identifier,Supplier<JsonElement>> modelCollector)
      Mappings:
      Namespace Name Mixin selector
      official a Ljo;a(Lbzo;Ljava/lang/String;Ljq;Ljava/util/function/BiConsumer;)Lww;
      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;
      named upload Lnet/minecraft/data/client/model/Model;upload(Lnet/minecraft/block/Block;Ljava/lang/String;Lnet/minecraft/data/client/model/Texture;Ljava/util/function/BiConsumer;)Lnet/minecraft/util/Identifier;
    • uploadWithoutVariant

      public Identifier uploadWithoutVariant(Block block, String suffix, Texture texture, BiConsumer<Identifier,Supplier<JsonElement>> modelCollector)
      Mappings:
      Namespace Name Mixin selector
      official b Ljo;b(Lbzo;Ljava/lang/String;Ljq;Ljava/util/function/BiConsumer;)Lww;
      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;
      named uploadWithoutVariant Lnet/minecraft/data/client/model/Model;uploadWithoutVariant(Lnet/minecraft/block/Block;Ljava/lang/String;Lnet/minecraft/data/client/model/Texture;Ljava/util/function/BiConsumer;)Lnet/minecraft/util/Identifier;
    • upload

      public Identifier upload(Identifier id, Texture texture, BiConsumer<Identifier,Supplier<JsonElement>> modelCollector)
      Mappings:
      Namespace Name Mixin selector
      official a Ljo;a(Lww;Ljq;Ljava/util/function/BiConsumer;)Lww;
      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;
      named upload Lnet/minecraft/data/client/model/Model;upload(Lnet/minecraft/util/Identifier;Lnet/minecraft/data/client/model/Texture;Ljava/util/function/BiConsumer;)Lnet/minecraft/util/Identifier;
    • createTextureMap

      private Map<TextureKey,Identifier> createTextureMap(Texture texture)
      Mappings:
      Namespace Name Mixin selector
      official a Ljo;a(Ljq;)Ljava/util/Map;
      intermediary method_25850 Lnet/minecraft/class_4942;method_25850(Lnet/minecraft/class_4944;)Ljava/util/Map;
      named createTextureMap Lnet/minecraft/data/client/model/Model;createTextureMap(Lnet/minecraft/data/client/model/Texture;)Ljava/util/Map;