Class Sprite

java.lang.Object
net.minecraft.client.texture.atlas.Sprite

@Environment(CLIENT) public class Sprite extends Object
Mappings:
Namespace Name
official fun
intermediary net/minecraft/class_7958
named net/minecraft/client/texture/atlas/Sprite
  • Field Details

    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      official a Lfun;a:Lacq;
      intermediary field_41416 Lnet/minecraft/class_7958;field_41416:Lnet/minecraft/class_2960;
      named id Lnet/minecraft/client/texture/atlas/Sprite;id:Lnet/minecraft/util/Identifier;
    • resource

      private final Resource resource
      Mappings:
      Namespace Name Mixin selector
      official b Lfun;b:Lakt;
      intermediary field_41417 Lnet/minecraft/class_7958;field_41417:Lnet/minecraft/class_3298;
      named resource Lnet/minecraft/client/texture/atlas/Sprite;resource:Lnet/minecraft/resource/Resource;
    • image

      private final AtomicReference<NativeImage> image
      Mappings:
      Namespace Name Mixin selector
      official c Lfun;c:Ljava/util/concurrent/atomic/AtomicReference;
      intermediary field_41418 Lnet/minecraft/class_7958;field_41418:Ljava/util/concurrent/atomic/AtomicReference;
      named image Lnet/minecraft/client/texture/atlas/Sprite;image:Ljava/util/concurrent/atomic/AtomicReference;
    • regionCount

      private final AtomicInteger regionCount
      Mappings:
      Namespace Name Mixin selector
      official d Lfun;d:Ljava/util/concurrent/atomic/AtomicInteger;
      intermediary field_41419 Lnet/minecraft/class_7958;field_41419:Ljava/util/concurrent/atomic/AtomicInteger;
      named regionCount Lnet/minecraft/client/texture/atlas/Sprite;regionCount:Ljava/util/concurrent/atomic/AtomicInteger;
  • Constructor Details

    • Sprite

      public Sprite(Identifier id, Resource resource, int regionCount)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfun;<init>(Lacq;Lakt;I)V
      intermediary <init> Lnet/minecraft/class_7958;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_3298;I)V
      named <init> Lnet/minecraft/client/texture/atlas/Sprite;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/resource/Resource;I)V
  • Method Details

    • read

      public NativeImage read() throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lfun;a()Legw;
      intermediary method_47697 Lnet/minecraft/class_7958;method_47697()Lnet/minecraft/class_1011;
      named read Lnet/minecraft/client/texture/atlas/Sprite;read()Lnet/minecraft/client/texture/NativeImage;
    • close

      public void close()
      Mappings:
      Namespace Name Mixin selector
      official b Lfun;b()V
      intermediary method_47698 Lnet/minecraft/class_7958;method_47698()V
      named close Lnet/minecraft/client/texture/atlas/Sprite;close()V