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
official eqk
intermediary net/minecraft/class_793
named net/minecraft/client/render/model/json/JsonUnbakedModel
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official g Leqk;g:Lorg/apache/logging/log4j/Logger;
      intermediary field_4248 Lnet/minecraft/class_793;field_4248:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/render/model/json/JsonUnbakedModel;LOGGER:Lorg/apache/logging/log4j/Logger;
    • QUAD_FACTORY

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

      static final Gson GSON
      Mappings:
      Namespace Name Mixin selector
      official a Leqk;a:Lcom/google/gson/Gson;
      intermediary field_4254 Lnet/minecraft/class_793;field_4254:Lcom/google/gson/Gson;
      named GSON Lnet/minecraft/client/render/model/json/JsonUnbakedModel;GSON: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
      official i Leqk;i:C
      intermediary field_32793 Lnet/minecraft/class_793;field_32793:C
      named TEXTURE_REFERENCE_INITIAL Lnet/minecraft/client/render/model/json/JsonUnbakedModel;TEXTURE_REFERENCE_INITIAL:C
    • PARTICLE_KEY

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

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

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

      private final boolean ambientOcclusion
      Mappings:
      Namespace Name Mixin selector
      official l Leqk;l:Z
      intermediary field_4244 Lnet/minecraft/class_793;field_4244:Z
      named ambientOcclusion Lnet/minecraft/client/render/model/json/JsonUnbakedModel;ambientOcclusion:Z
    • transformations

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

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

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

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

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

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

    • JsonUnbakedModel

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

    • deserialize

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

      public static JsonUnbakedModel deserialize(String json)
      Mappings:
      Namespace Name Mixin selector
      official a Leqk;a(Ljava/lang/String;)Leqk;
      intermediary method_3430 Lnet/minecraft/class_793;method_3430(Ljava/lang/String;)Lnet/minecraft/class_793;
      named deserialize Lnet/minecraft/client/render/model/json/JsonUnbakedModel;deserialize(Ljava/lang/String;)Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
    • getElements

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

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

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

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

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

      private ModelOverrideList compileOverrides(ModelLoader modelLoader, JsonUnbakedModel parent)
      Mappings:
      Namespace Name Mixin selector
      official a Leqk;a(Lfbh;Leqk;)Leqp;
      intermediary method_3440 Lnet/minecraft/class_793;method_3440(Lnet/minecraft/class_1088;Lnet/minecraft/class_793;)Lnet/minecraft/class_806;
      named compileOverrides Lnet/minecraft/client/render/model/json/JsonUnbakedModel;compileOverrides(Lnet/minecraft/client/render/model/ModelLoader;Lnet/minecraft/client/render/model/json/JsonUnbakedModel;)Lnet/minecraft/client/render/model/json/ModelOverrideList;
    • getModelDependencies

      public Collection<Identifier> getModelDependencies()
      Specified by:
      getModelDependencies in interface UnbakedModel
      Mappings:
      Namespace Name Mixin selector
      official f Lfbn;f()Ljava/util/Collection;
      intermediary method_4755 Lnet/minecraft/class_1100;method_4755()Ljava/util/Collection;
      named getModelDependencies Lnet/minecraft/client/render/model/UnbakedModel;getModelDependencies()Ljava/util/Collection;
    • getTextureDependencies

      public Collection<SpriteIdentifier> getTextureDependencies(Function<Identifier,UnbakedModel> unbakedModelGetter, Set<com.mojang.datafixers.util.Pair<String,String>> unresolvedTextureReferences)
      Specified by:
      getTextureDependencies in interface UnbakedModel
      Mappings:
      Namespace Name Mixin selector
      official a Lfbn;a(Ljava/util/function/Function;Ljava/util/Set;)Ljava/util/Collection;
      intermediary method_4754 Lnet/minecraft/class_1100;method_4754(Ljava/util/function/Function;Ljava/util/Set;)Ljava/util/Collection;
      named getTextureDependencies Lnet/minecraft/client/render/model/UnbakedModel;getTextureDependencies(Ljava/util/function/Function;Ljava/util/Set;)Ljava/util/Collection;
    • bake

      public BakedModel bake(ModelLoader loader, Function<SpriteIdentifier,Sprite> textureGetter, ModelBakeSettings rotationContainer, Identifier modelId)
      Specified by:
      bake in interface UnbakedModel
      Mappings:
      Namespace Name Mixin selector
      official a Lfbn;a(Lfbh;Ljava/util/function/Function;Lfbk;Lyh;)Lfbd;
      intermediary method_4753 Lnet/minecraft/class_1100;method_4753(Lnet/minecraft/class_1088;Ljava/util/function/Function;Lnet/minecraft/class_3665;Lnet/minecraft/class_2960;)Lnet/minecraft/class_1087;
      named bake Lnet/minecraft/client/render/model/UnbakedModel;bake(Lnet/minecraft/client/render/model/ModelLoader;Ljava/util/function/Function;Lnet/minecraft/client/render/model/ModelBakeSettings;Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/model/BakedModel;
    • bake

      public BakedModel bake(ModelLoader loader, JsonUnbakedModel parent, Function<SpriteIdentifier,Sprite> textureGetter, ModelBakeSettings settings, Identifier id, boolean hasDepth)
      Mappings:
      Namespace Name Mixin selector
      official a Leqk;a(Lfbh;Leqk;Ljava/util/function/Function;Lfbk;Lyh;Z)Lfbd;
      intermediary method_3446 Lnet/minecraft/class_793;method_3446(Lnet/minecraft/class_1088;Lnet/minecraft/class_793;Ljava/util/function/Function;Lnet/minecraft/class_3665;Lnet/minecraft/class_2960;Z)Lnet/minecraft/class_1087;
      named bake Lnet/minecraft/client/render/model/json/JsonUnbakedModel;bake(Lnet/minecraft/client/render/model/ModelLoader;Lnet/minecraft/client/render/model/json/JsonUnbakedModel;Ljava/util/function/Function;Lnet/minecraft/client/render/model/ModelBakeSettings;Lnet/minecraft/util/Identifier;Z)Lnet/minecraft/client/render/model/BakedModel;
    • createQuad

      private static BakedQuad createQuad(ModelElement element, ModelElementFace elementFace, Sprite sprite, Direction side, ModelBakeSettings settings, Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official a Leqk;a(Leqg;Leqh;Lezr;Lgm;Lfbk;Lyh;)Leqf;
      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_2960;)Lnet/minecraft/class_777;
      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/util/Identifier;)Lnet/minecraft/client/render/model/BakedQuad;
    • textureExists

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

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

      private com.mojang.datafixers.util.Either<SpriteIdentifier,String> resolveTexture(String name)
      Mappings:
      Namespace Name Mixin selector
      official d Leqk;d(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;
      named resolveTexture Lnet/minecraft/client/render/model/json/JsonUnbakedModel;resolveTexture(Ljava/lang/String;)Lcom/mojang/datafixers/util/Either;
    • isTextureReference

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

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

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

      private Transformation getTransformation(ModelTransformation.Mode renderMode)
      Mappings:
      Namespace Name Mixin selector
      official a Leqk;a(Leqr$b;)Leqq;
      intermediary method_3438 Lnet/minecraft/class_793;method_3438(Lnet/minecraft/class_809$class_811;)Lnet/minecraft/class_804;
      named getTransformation Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getTransformation(Lnet/minecraft/client/render/model/json/ModelTransformation$Mode;)Lnet/minecraft/client/render/model/json/Transformation;
    • toString

      public String toString()
      Overrides:
      toString in class Object