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 feu
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 Lfeu;g:Lorg/slf4j/Logger;
      intermediary field_4248 Lnet/minecraft/class_793;field_4248:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/client/render/model/json/JsonUnbakedModel;LOGGER:Lorg/slf4j/Logger;
    • QUAD_FACTORY

      private static final BakedQuadFactory QUAD_FACTORY
      Mappings:
      Namespace Name Mixin selector
      official h Lfeu;h:Lfew;
      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 Lfeu;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 Lfeu;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 Lfeu;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 Lfeu;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 Lfeu;k:Lfeu$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 Lfeu;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 Lfeu;m:Lffb;
      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 Lfeu;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 Lfeu;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 Lfeu;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 Lfeu;e:Lfeu;
      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 Lfeu;f:Lacf;
      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> Lfeu;<init>(Lacf;Ljava/util/List;Ljava/util/Map;ZLfeu$b;Lffb;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 Lfeu;a(Ljava/io/Reader;)Lfeu;
      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 Lfeu;a(Ljava/lang/String;)Lfeu;
      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 Lfeu;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 Lfeu;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 Lfeu;c()Lfeu$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 Lfeu;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 Lfeu;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(Baker baker, JsonUnbakedModel parent)
      Mappings:
      Namespace Name Mixin selector
      official a Lfeu;a(Lfql;Lfeu;)Lfez;
      intermediary method_3440 Lnet/minecraft/class_793;method_3440(Lnet/minecraft/class_7775;Lnet/minecraft/class_793;)Lnet/minecraft/class_806;
      named compileOverrides Lnet/minecraft/client/render/model/json/JsonUnbakedModel;compileOverrides(Lnet/minecraft/client/render/model/Baker;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 Lfqs;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;
    • setParents

      public void setParents(Function<Identifier,UnbakedModel> modelLoader)
      Specified by:
      setParents in interface UnbakedModel
      Mappings:
      Namespace Name Mixin selector
      official a Lfqs;a(Ljava/util/function/Function;)V
      intermediary method_45785 Lnet/minecraft/class_1100;method_45785(Ljava/util/function/Function;)V
      named setParents Lnet/minecraft/client/render/model/UnbakedModel;setParents(Ljava/util/function/Function;)V
    • bake

      public BakedModel bake(Baker baker, Function<SpriteIdentifier,Sprite> textureGetter, ModelBakeSettings rotationContainer, Identifier modelId)
      Specified by:
      bake in interface UnbakedModel
      Mappings:
      Namespace Name Mixin selector
      official a Lfqs;a(Lfql;Ljava/util/function/Function;Lfqp;Lacf;)Lfqh;
      intermediary method_4753 Lnet/minecraft/class_1100;method_4753(Lnet/minecraft/class_7775;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/Baker;Ljava/util/function/Function;Lnet/minecraft/client/render/model/ModelBakeSettings;Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/model/BakedModel;
    • bake

      public BakedModel bake(Baker baker, JsonUnbakedModel parent, Function<SpriteIdentifier,Sprite> textureGetter, ModelBakeSettings settings, Identifier id, boolean hasDepth)
      Mappings:
      Namespace Name Mixin selector
      official a Lfeu;a(Lfql;Lfeu;Ljava/util/function/Function;Lfqp;Lacf;Z)Lfqh;
      intermediary method_3446 Lnet/minecraft/class_793;method_3446(Lnet/minecraft/class_7775;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/Baker;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 Lfeu;a(Lfeq;Lfer;Lfol;Lgv;Lfqp;Lacf;)Lfep;
      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 Lfeu;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 Lfeu;c(Ljava/lang/String;)Lfqk;
      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 Lfeu;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 Lfeu;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 Lfeu;g()Lfeu;
      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 Lfeu;h()Lffb;
      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 Lfeu;a(Lffb$b;)Lffa;
      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