Package net.minecraft.client.texture
Class TextureStitcher
java.lang.Object
net.minecraft.client.texture.TextureStitcher
@Environment(CLIENT) public class TextureStitcher extends Object
- Mappings:
Namespace Name official err
intermediary net/minecraft/class_1055
named net/minecraft/client/texture/TextureStitcher
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
TextureStitcher.Holder
static class
TextureStitcher.Slot
static interface
TextureStitcher.SpriteConsumer
-
Field Summary
Fields Modifier and Type Field Description private static Comparator<TextureStitcher.Holder>
COMPARATOR
private int
height
private Set<TextureStitcher.Holder>
holders
private int
maxHeight
private int
maxWidth
private int
mipLevel
private List<TextureStitcher.Slot>
slots
private int
width
-
Constructor Summary
Constructors Constructor Description TextureStitcher(int maxWidth, int maxHeight, int mipLevel)
-
Method Summary
Modifier and Type Method Description void
add(Sprite.Info info)
private static int
applyMipLevel(int size, int mipLevel)
private boolean
fit(TextureStitcher.Holder holder)
int
getHeight()
void
getStitchedSprites(TextureStitcher.SpriteConsumer spriteConsumer)
int
getWidth()
private boolean
growAndFit(TextureStitcher.Holder holder)
void
stitch()
-
Field Details
-
COMPARATOR
- Mappings:
Namespace Name Mixin selector official a
Lerr;a:Ljava/util/Comparator;
intermediary field_18030
Lnet/minecraft/class_1055;field_18030:Ljava/util/Comparator;
named COMPARATOR
Lnet/minecraft/client/texture/TextureStitcher;COMPARATOR:Ljava/util/Comparator;
-
mipLevel
private final int mipLevel- Mappings:
Namespace Name Mixin selector official b
Lerr;b:I
intermediary field_5243
Lnet/minecraft/class_1055;field_5243:I
named mipLevel
Lnet/minecraft/client/texture/TextureStitcher;mipLevel:I
-
holders
- Mappings:
Namespace Name Mixin selector official c
Lerr;c:Ljava/util/Set;
intermediary field_5237
Lnet/minecraft/class_1055;field_5237:Ljava/util/Set;
named holders
Lnet/minecraft/client/texture/TextureStitcher;holders:Ljava/util/Set;
-
slots
- Mappings:
Namespace Name Mixin selector official d
Lerr;d:Ljava/util/List;
intermediary field_5239
Lnet/minecraft/class_1055;field_5239:Ljava/util/List;
named slots
Lnet/minecraft/client/texture/TextureStitcher;slots:Ljava/util/List;
-
width
private int width- Mappings:
Namespace Name Mixin selector official e
Lerr;e:I
intermediary field_5242
Lnet/minecraft/class_1055;field_5242:I
named width
Lnet/minecraft/client/texture/TextureStitcher;width:I
-
height
private int height- Mappings:
Namespace Name Mixin selector official f
Lerr;f:I
intermediary field_5241
Lnet/minecraft/class_1055;field_5241:I
named height
Lnet/minecraft/client/texture/TextureStitcher;height:I
-
maxWidth
private final int maxWidth- Mappings:
Namespace Name Mixin selector official g
Lerr;g:I
intermediary field_5240
Lnet/minecraft/class_1055;field_5240:I
named maxWidth
Lnet/minecraft/client/texture/TextureStitcher;maxWidth:I
-
maxHeight
private final int maxHeight- Mappings:
Namespace Name Mixin selector official h
Lerr;h:I
intermediary field_5238
Lnet/minecraft/class_1055;field_5238:I
named maxHeight
Lnet/minecraft/client/texture/TextureStitcher;maxHeight:I
-
-
Constructor Details
-
TextureStitcher
public TextureStitcher(int maxWidth, int maxHeight, int mipLevel)- Mappings:
Namespace Name Mixin selector official <init>
Lerr;<init>(III)V
intermediary <init>
Lnet/minecraft/class_1055;<init>(III)V
named <init>
Lnet/minecraft/client/texture/TextureStitcher;<init>(III)V
-
-
Method Details
-
getWidth
public int getWidth()- Mappings:
Namespace Name Mixin selector official a
Lerr;a()I
intermediary method_4554
Lnet/minecraft/class_1055;method_4554()I
named getWidth
Lnet/minecraft/client/texture/TextureStitcher;getWidth()I
-
getHeight
public int getHeight()- Mappings:
Namespace Name Mixin selector official b
Lerr;b()I
intermediary method_4555
Lnet/minecraft/class_1055;method_4555()I
named getHeight
Lnet/minecraft/client/texture/TextureStitcher;getHeight()I
-
add
- Mappings:
Namespace Name Mixin selector official a
Lerr;a(Leru$c;)V
intermediary method_4553
Lnet/minecraft/class_1055;method_4553(Lnet/minecraft/class_1058$class_4727;)V
named add
Lnet/minecraft/client/texture/TextureStitcher;add(Lnet/minecraft/client/texture/Sprite$Info;)V
-
stitch
public void stitch()- Mappings:
Namespace Name Mixin selector official c
Lerr;c()V
intermediary method_4557
Lnet/minecraft/class_1055;method_4557()V
named stitch
Lnet/minecraft/client/texture/TextureStitcher;stitch()V
-
getStitchedSprites
- Mappings:
Namespace Name Mixin selector official a
Lerr;a(Lerr$c;)V
intermediary method_4549
Lnet/minecraft/class_1055;method_4549(Lnet/minecraft/class_1055$class_4726;)V
named getStitchedSprites
Lnet/minecraft/client/texture/TextureStitcher;getStitchedSprites(Lnet/minecraft/client/texture/TextureStitcher$SpriteConsumer;)V
-
applyMipLevel
private static int applyMipLevel(int size, int mipLevel)- Mappings:
Namespace Name Mixin selector official b
Lerr;b(II)I
intermediary method_4551
Lnet/minecraft/class_1055;method_4551(II)I
named applyMipLevel
Lnet/minecraft/client/texture/TextureStitcher;applyMipLevel(II)I
-
fit
- Mappings:
Namespace Name Mixin selector official a
Lerr;a(Lerr$a;)Z
intermediary method_4550
Lnet/minecraft/class_1055;method_4550(Lnet/minecraft/class_1055$class_1056;)Z
named fit
Lnet/minecraft/client/texture/TextureStitcher;fit(Lnet/minecraft/client/texture/TextureStitcher$Holder;)Z
-
growAndFit
- Mappings:
Namespace Name Mixin selector official b
Lerr;b(Lerr$a;)Z
intermediary method_4552
Lnet/minecraft/class_1055;method_4552(Lnet/minecraft/class_1055$class_1056;)Z
named growAndFit
Lnet/minecraft/client/texture/TextureStitcher;growAndFit(Lnet/minecraft/client/texture/TextureStitcher$Holder;)Z
-