Class ItemModelGenerator

java.lang.Object
net.minecraft.client.render.model.json.ItemModelGenerator

@Environment(CLIENT)
public class ItemModelGenerator
extends Object
Mappings:
Namespace Name
official eis
intermediary net/minecraft/class_801
named net/minecraft/client/render/model/json/ItemModelGenerator
  • Field Details

    • LAYERS

      public static final List<String> LAYERS
      Mappings:
      Namespace Name Mixin selector
      official a Leis;a:Ljava/util/List;
      intermediary field_4270 Lnet/minecraft/class_801;field_4270:Ljava/util/List;
      named LAYERS Lnet/minecraft/client/render/model/json/ItemModelGenerator;LAYERS:Ljava/util/List;
  • Constructor Details

    • ItemModelGenerator

      public ItemModelGenerator()
  • Method Details

    • create

      public JsonUnbakedModel create​(Function<SpriteIdentifier,​Sprite> textureGetter, JsonUnbakedModel blockModel)
      Mappings:
      Namespace Name Mixin selector
      official a Leis;a(Ljava/util/function/Function;Leip;)Leip;
      intermediary method_3479 Lnet/minecraft/class_801;method_3479(Ljava/util/function/Function;Lnet/minecraft/class_793;)Lnet/minecraft/class_793;
      named create Lnet/minecraft/client/render/model/json/ItemModelGenerator;create(Ljava/util/function/Function;Lnet/minecraft/client/render/model/json/JsonUnbakedModel;)Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
    • addLayerElements

      private List<ModelElement> addLayerElements​(int layer, String key, Sprite sprite)
      Mappings:
      Namespace Name Mixin selector
      official a Leis;a(ILjava/lang/String;Leru;)Ljava/util/List;
      intermediary method_3480 Lnet/minecraft/class_801;method_3480(ILjava/lang/String;Lnet/minecraft/class_1058;)Ljava/util/List;
      named addLayerElements Lnet/minecraft/client/render/model/json/ItemModelGenerator;addLayerElements(ILjava/lang/String;Lnet/minecraft/client/texture/Sprite;)Ljava/util/List;
    • addSubComponents

      private List<ModelElement> addSubComponents​(Sprite sprite, String key, int layer)
      Mappings:
      Namespace Name Mixin selector
      official a Leis;a(Leru;Ljava/lang/String;I)Ljava/util/List;
      intermediary method_3481 Lnet/minecraft/class_801;method_3481(Lnet/minecraft/class_1058;Ljava/lang/String;I)Ljava/util/List;
      named addSubComponents Lnet/minecraft/client/render/model/json/ItemModelGenerator;addSubComponents(Lnet/minecraft/client/texture/Sprite;Ljava/lang/String;I)Ljava/util/List;
    • getFrames

      private List<ItemModelGenerator.Frame> getFrames​(Sprite sprite)
      Mappings:
      Namespace Name Mixin selector
      official a Leis;a(Leru;)Ljava/util/List;
      intermediary method_3478 Lnet/minecraft/class_801;method_3478(Lnet/minecraft/class_1058;)Ljava/util/List;
      named getFrames Lnet/minecraft/client/render/model/json/ItemModelGenerator;getFrames(Lnet/minecraft/client/texture/Sprite;)Ljava/util/List;
    • buildCube

      private void buildCube​(ItemModelGenerator.Side side, List<ItemModelGenerator.Frame> cubes, Sprite sprite, int frame, int x, int y, int int2, int int3, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Leis;a(Leis$b;Ljava/util/List;Leru;IIIIIZ)V
      intermediary method_3476 Lnet/minecraft/class_801;method_3476(Lnet/minecraft/class_801$class_803;Ljava/util/List;Lnet/minecraft/class_1058;IIIIIZ)V
      named buildCube Lnet/minecraft/client/render/model/json/ItemModelGenerator;buildCube(Lnet/minecraft/client/render/model/json/ItemModelGenerator$Side;Ljava/util/List;Lnet/minecraft/client/texture/Sprite;IIIIIZ)V
    • buildCube

      private void buildCube​(List<ItemModelGenerator.Frame> cubes, ItemModelGenerator.Side side, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      official a Leis;a(Ljava/util/List;Leis$b;II)V
      intermediary method_3482 Lnet/minecraft/class_801;method_3482(Ljava/util/List;Lnet/minecraft/class_801$class_803;II)V
      named buildCube Lnet/minecraft/client/render/model/json/ItemModelGenerator;buildCube(Ljava/util/List;Lnet/minecraft/client/render/model/json/ItemModelGenerator$Side;II)V
    • isPixelTransparent

      private boolean isPixelTransparent​(Sprite sprite, int frame, int x, int y, int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      official a Leis;a(Leru;IIIII)Z
      intermediary method_3477 Lnet/minecraft/class_801;method_3477(Lnet/minecraft/class_1058;IIIII)Z
      named isPixelTransparent Lnet/minecraft/client/render/model/json/ItemModelGenerator;isPixelTransparent(Lnet/minecraft/client/texture/Sprite;IIIII)Z