Class JsonUnbakedModel

java.lang.Object
net.minecraft.client.render.model.json.JsonUnbakedModel
All Implemented Interfaces:
UnbakedModel

@Environment(CLIENT) public class JsonUnbakedModel extends Object implements UnbakedModel
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/JsonUnbakedModel
intermediary net/minecraft/class_793
official gmw
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/render/model/json/JsonUnbakedModel;LOGGER:Lorg/slf4j/Logger;
      intermediary field_4248 Lnet/minecraft/class_793;field_4248:Lorg/slf4j/Logger;
      official h Lgmw;h:Lorg/slf4j/Logger;
    • QUAD_FACTORY

      private static final BakedQuadFactory QUAD_FACTORY
      Mappings:
      Namespace Name Mixin selector
      named QUAD_FACTORY Lnet/minecraft/client/render/model/json/JsonUnbakedModel;QUAD_FACTORY:Lnet/minecraft/client/render/model/BakedQuadFactory;
      intermediary field_4249 Lnet/minecraft/class_793;field_4249:Lnet/minecraft/class_796;
      official i Lgmw;i:Lgmy;
    • GSON

      static final Gson GSON
      Mappings:
      Namespace Name Mixin selector
      named GSON Lnet/minecraft/client/render/model/json/JsonUnbakedModel;GSON:Lcom/google/gson/Gson;
      intermediary field_4254 Lnet/minecraft/class_793;field_4254:Lcom/google/gson/Gson;
      official a Lgmw;a:Lcom/google/gson/Gson;
    • TEXTURE_REFERENCE_INITIAL

      private static final char TEXTURE_REFERENCE_INITIAL
      The initial character ('#') of a texture reference in JSON; used to distinguish texture references from other references.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TEXTURE_REFERENCE_INITIAL Lnet/minecraft/client/render/model/json/JsonUnbakedModel;TEXTURE_REFERENCE_INITIAL:C
      intermediary field_32793 Lnet/minecraft/class_793;field_32793:C
      official j Lgmw;j:C
    • PARTICLE_KEY

      public static final String PARTICLE_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named PARTICLE_KEY Lnet/minecraft/client/render/model/json/JsonUnbakedModel;PARTICLE_KEY:Ljava/lang/String;
      intermediary field_32792 Lnet/minecraft/class_793;field_32792:Ljava/lang/String;
      official b Lgmw;b:Ljava/lang/String;
    • field_42912

      private static final boolean field_42912
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_42912 Lnet/minecraft/client/render/model/json/JsonUnbakedModel;field_42912:Z
      intermediary field_42912 Lnet/minecraft/class_793;field_42912:Z
      official k Lgmw;k:Z
    • MISSING_SPRITE

      public static final SpriteIdentifier MISSING_SPRITE
      Mappings:
      Namespace Name Mixin selector
      named MISSING_SPRITE Lnet/minecraft/client/render/model/json/JsonUnbakedModel;MISSING_SPRITE:Lnet/minecraft/client/util/SpriteIdentifier;
      intermediary field_54858 Lnet/minecraft/class_793;field_54858:Lnet/minecraft/class_4730;
      official c Lgmw;c:Lhdt;
    • elements

      private final List<ModelElement> elements
      Mappings:
      Namespace Name Mixin selector
      named elements Lnet/minecraft/client/render/model/json/JsonUnbakedModel;elements:Ljava/util/List;
      intermediary field_4245 Lnet/minecraft/class_793;field_4245:Ljava/util/List;
      official l Lgmw;l:Ljava/util/List;
    • guiLight

      Mappings:
      Namespace Name Mixin selector
      named guiLight Lnet/minecraft/client/render/model/json/JsonUnbakedModel;guiLight:Lnet/minecraft/client/render/model/json/JsonUnbakedModel$GuiLight;
      intermediary field_21857 Lnet/minecraft/class_793;field_21857:Lnet/minecraft/class_793$class_4751;
      official m Lgmw;m:Lgmw$b;
    • ambientOcclusion

      @Nullable private final @Nullable Boolean ambientOcclusion
      Mappings:
      Namespace Name Mixin selector
      named ambientOcclusion Lnet/minecraft/client/render/model/json/JsonUnbakedModel;ambientOcclusion:Ljava/lang/Boolean;
      intermediary field_4244 Lnet/minecraft/class_793;field_4244:Ljava/lang/Boolean;
      official n Lgmw;n:Ljava/lang/Boolean;
    • transformations

      private final ModelTransformation transformations
      Mappings:
      Namespace Name Mixin selector
      named transformations Lnet/minecraft/client/render/model/json/JsonUnbakedModel;transformations:Lnet/minecraft/client/render/model/json/ModelTransformation;
      intermediary field_4250 Lnet/minecraft/class_793;field_4250:Lnet/minecraft/class_809;
      official o Lgmw;o:Lgnc;
    • overrides

      private final List<ModelOverride> overrides
      Mappings:
      Namespace Name Mixin selector
      named overrides Lnet/minecraft/client/render/model/json/JsonUnbakedModel;overrides:Ljava/util/List;
      intermediary field_4255 Lnet/minecraft/class_793;field_4255:Ljava/util/List;
      official p Lgmw;p:Ljava/util/List;
    • id

      public String id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/client/render/model/json/JsonUnbakedModel;id:Ljava/lang/String;
      intermediary field_4252 Lnet/minecraft/class_793;field_4252:Ljava/lang/String;
      official d Lgmw;d:Ljava/lang/String;
    • textureMap

      protected final Map<String,com.mojang.datafixers.util.Either<SpriteIdentifier,String>> textureMap
      Mappings:
      Namespace Name Mixin selector
      named textureMap Lnet/minecraft/client/render/model/json/JsonUnbakedModel;textureMap:Ljava/util/Map;
      intermediary field_4251 Lnet/minecraft/class_793;field_4251:Ljava/util/Map;
      official e Lgmw;e:Ljava/util/Map;
    • parent

      Mappings:
      Namespace Name Mixin selector
      named parent Lnet/minecraft/client/render/model/json/JsonUnbakedModel;parent:Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
      intermediary field_4253 Lnet/minecraft/class_793;field_4253:Lnet/minecraft/class_793;
      official f Lgmw;f:Lgmw;
    • parentId

      @Nullable protected @Nullable Identifier parentId
      Mappings:
      Namespace Name Mixin selector
      named parentId Lnet/minecraft/client/render/model/json/JsonUnbakedModel;parentId:Lnet/minecraft/util/Identifier;
      intermediary field_4247 Lnet/minecraft/class_793;field_4247:Lnet/minecraft/class_2960;
      official g Lgmw;g:Lalz;
  • Constructor Details

    • JsonUnbakedModel

      public JsonUnbakedModel(@Nullable @Nullable Identifier parentId, List<ModelElement> elements, Map<String,com.mojang.datafixers.util.Either<SpriteIdentifier,String>> textureMap, @Nullable @Nullable Boolean ambientOcclusion, @Nullable @Nullable JsonUnbakedModel.GuiLight guiLight, ModelTransformation transformations, List<ModelOverride> overrides)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/model/json/JsonUnbakedModel;<init>(Lnet/minecraft/util/Identifier;Ljava/util/List;Ljava/util/Map;Ljava/lang/Boolean;Lnet/minecraft/client/render/model/json/JsonUnbakedModel$GuiLight;Lnet/minecraft/client/render/model/json/ModelTransformation;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_793;<init>(Lnet/minecraft/class_2960;Ljava/util/List;Ljava/util/Map;Ljava/lang/Boolean;Lnet/minecraft/class_793$class_4751;Lnet/minecraft/class_809;Ljava/util/List;)V
      official <init> Lgmw;<init>(Lalz;Ljava/util/List;Ljava/util/Map;Ljava/lang/Boolean;Lgmw$b;Lgnc;Ljava/util/List;)V
  • Method Details

    • deserialize

      public static JsonUnbakedModel deserialize(Reader input)
      Mappings:
      Namespace Name Mixin selector
      named deserialize Lnet/minecraft/client/render/model/json/JsonUnbakedModel;deserialize(Ljava/io/Reader;)Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
      intermediary method_3437 Lnet/minecraft/class_793;method_3437(Ljava/io/Reader;)Lnet/minecraft/class_793;
      official a Lgmw;a(Ljava/io/Reader;)Lgmw;
    • getElements

      public List<ModelElement> getElements()
      Mappings:
      Namespace Name Mixin selector
      named getElements Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getElements()Ljava/util/List;
      intermediary method_3433 Lnet/minecraft/class_793;method_3433()Ljava/util/List;
      official a Lgmw;a()Ljava/util/List;
    • useAmbientOcclusion

      public boolean useAmbientOcclusion()
      Mappings:
      Namespace Name Mixin selector
      named useAmbientOcclusion Lnet/minecraft/client/render/model/json/JsonUnbakedModel;useAmbientOcclusion()Z
      intermediary method_3444 Lnet/minecraft/class_793;method_3444()Z
      official b Lgmw;b()Z
    • getGuiLight

      public JsonUnbakedModel.GuiLight getGuiLight()
      Mappings:
      Namespace Name Mixin selector
      named getGuiLight Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getGuiLight()Lnet/minecraft/client/render/model/json/JsonUnbakedModel$GuiLight;
      intermediary method_24298 Lnet/minecraft/class_793;method_24298()Lnet/minecraft/class_793$class_4751;
      official c Lgmw;c()Lgmw$b;
    • needsResolution

      public boolean needsResolution()
      Mappings:
      Namespace Name Mixin selector
      named needsResolution Lnet/minecraft/client/render/model/json/JsonUnbakedModel;needsResolution()Z
      intermediary method_35789 Lnet/minecraft/class_793;method_35789()Z
      official d Lgmw;d()Z
    • getOverrides

      public List<ModelOverride> getOverrides()
      Mappings:
      Namespace Name Mixin selector
      named getOverrides Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getOverrides()Ljava/util/List;
      intermediary method_3434 Lnet/minecraft/class_793;method_3434()Ljava/util/List;
      official e Lgmw;e()Ljava/util/List;
    • resolve

      public void resolve(UnbakedModel.Resolver resolver)
      Specified by:
      resolve in interface UnbakedModel
      Mappings:
      Namespace Name Mixin selector
      named resolve Lnet/minecraft/client/render/model/UnbakedModel;resolve(Lnet/minecraft/client/render/model/UnbakedModel$Resolver;)V
      intermediary method_62326 Lnet/minecraft/class_1100;method_62326(Lnet/minecraft/class_1100$class_10103;)V
      official a Lhef;a(Lhef$a;)V
    • bake

      public BakedModel bake(Baker baker, Function<SpriteIdentifier,Sprite> textureGetter, ModelBakeSettings rotationContainer)
      Specified by:
      bake in interface UnbakedModel
      Mappings:
      Namespace Name Mixin selector
      named bake Lnet/minecraft/client/render/model/UnbakedModel;bake(Lnet/minecraft/client/render/model/Baker;Ljava/util/function/Function;Lnet/minecraft/client/render/model/ModelBakeSettings;)Lnet/minecraft/client/render/model/BakedModel;
      intermediary method_4753 Lnet/minecraft/class_1100;method_4753(Lnet/minecraft/class_7775;Ljava/util/function/Function;Lnet/minecraft/class_3665;)Lnet/minecraft/class_1087;
      official a Lhef;a(Lhdv;Ljava/util/function/Function;Lheb;)Lhdm;
    • bake

      public BakedModel bake(Function<SpriteIdentifier,Sprite> function, ModelBakeSettings modelBakeSettings, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      named bake Lnet/minecraft/client/render/model/json/JsonUnbakedModel;bake(Ljava/util/function/Function;Lnet/minecraft/client/render/model/ModelBakeSettings;Z)Lnet/minecraft/client/render/model/BakedModel;
      intermediary method_3446 Lnet/minecraft/class_793;method_3446(Ljava/util/function/Function;Lnet/minecraft/class_3665;Z)Lnet/minecraft/class_1087;
      official a Lgmw;a(Ljava/util/function/Function;Lheb;Z)Lhdm;
    • createQuad

      private static BakedQuad createQuad(ModelElement element, ModelElementFace elementFace, Sprite sprite, Direction side, ModelBakeSettings settings)
      Mappings:
      Namespace Name Mixin selector
      named createQuad Lnet/minecraft/client/render/model/json/JsonUnbakedModel;createQuad(Lnet/minecraft/client/render/model/json/ModelElement;Lnet/minecraft/client/render/model/json/ModelElementFace;Lnet/minecraft/client/texture/Sprite;Lnet/minecraft/util/math/Direction;Lnet/minecraft/client/render/model/ModelBakeSettings;)Lnet/minecraft/client/render/model/BakedQuad;
      intermediary method_3447 Lnet/minecraft/class_793;method_3447(Lnet/minecraft/class_785;Lnet/minecraft/class_783;Lnet/minecraft/class_1058;Lnet/minecraft/class_2350;Lnet/minecraft/class_3665;)Lnet/minecraft/class_777;
      official a Lgmw;a(Lgms;Lgmt;Lhbk;Ljm;Lheb;)Lgmr;
    • textureExists

      public boolean textureExists(String name)
      Mappings:
      Namespace Name Mixin selector
      named textureExists Lnet/minecraft/client/render/model/json/JsonUnbakedModel;textureExists(Ljava/lang/String;)Z
      intermediary method_3432 Lnet/minecraft/class_793;method_3432(Ljava/lang/String;)Z
      official a Lgmw;a(Ljava/lang/String;)Z
    • resolveSprite

      public SpriteIdentifier resolveSprite(String spriteName)
      Mappings:
      Namespace Name Mixin selector
      named resolveSprite Lnet/minecraft/client/render/model/json/JsonUnbakedModel;resolveSprite(Ljava/lang/String;)Lnet/minecraft/client/util/SpriteIdentifier;
      intermediary method_24077 Lnet/minecraft/class_793;method_24077(Ljava/lang/String;)Lnet/minecraft/class_4730;
      official b Lgmw;b(Ljava/lang/String;)Lhdt;
    • resolveTexture

      private com.mojang.datafixers.util.Either<SpriteIdentifier,String> resolveTexture(String name)
      Mappings:
      Namespace Name Mixin selector
      named resolveTexture Lnet/minecraft/client/render/model/json/JsonUnbakedModel;resolveTexture(Ljava/lang/String;)Lcom/mojang/datafixers/util/Either;
      intermediary method_3442 Lnet/minecraft/class_793;method_3442(Ljava/lang/String;)Lcom/mojang/datafixers/util/Either;
      official c Lgmw;c(Ljava/lang/String;)Lcom/mojang/datafixers/util/Either;
    • isTextureReference

      static boolean isTextureReference(String reference)
      Mappings:
      Namespace Name Mixin selector
      named isTextureReference Lnet/minecraft/client/render/model/json/JsonUnbakedModel;isTextureReference(Ljava/lang/String;)Z
      intermediary method_3439 Lnet/minecraft/class_793;method_3439(Ljava/lang/String;)Z
      official d Lgmw;d(Ljava/lang/String;)Z
    • getRootModel

      public JsonUnbakedModel getRootModel()
      Mappings:
      Namespace Name Mixin selector
      named getRootModel Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getRootModel()Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
      intermediary method_3431 Lnet/minecraft/class_793;method_3431()Lnet/minecraft/class_793;
      official f Lgmw;f()Lgmw;
    • getTransformations

      public ModelTransformation getTransformations()
      Mappings:
      Namespace Name Mixin selector
      named getTransformations Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getTransformations()Lnet/minecraft/client/render/model/json/ModelTransformation;
      intermediary method_3443 Lnet/minecraft/class_793;method_3443()Lnet/minecraft/class_809;
      official g Lgmw;g()Lgnc;
    • getTransformation

      private Transformation getTransformation(ModelTransformationMode renderMode)
      Mappings:
      Namespace Name Mixin selector
      named getTransformation Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getTransformation(Lnet/minecraft/item/ModelTransformationMode;)Lnet/minecraft/client/render/model/json/Transformation;
      intermediary method_3438 Lnet/minecraft/class_793;method_3438(Lnet/minecraft/class_811;)Lnet/minecraft/class_804;
      official a Lgmw;a(Lcxm;)Lgnb;
    • toString

      public String toString()
      Overrides:
      toString in class Object