@Environment(value=CLIENT) public static class TextureStitcher.Slot extends Object
Modifier and Type | Field and Description |
---|---|
private int |
height |
private List<TextureStitcher.Slot> |
subSlots |
private TextureStitcher.Holder |
texture |
private int |
width |
private int |
x |
private int |
y |
Constructor and Description |
---|
Slot(int x,
int y,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
addAllFilledSlots(Consumer<TextureStitcher.Slot> consumer) |
boolean |
fit(TextureStitcher.Holder holder) |
TextureStitcher.Holder |
getTexture() |
int |
getX() |
int |
getY() |
String |
toString() |
private final int x
private final int y
private final int width
private final int height
private List<TextureStitcher.Slot> subSlots
private TextureStitcher.Holder texture
public TextureStitcher.Holder getTexture()
public int getX()
public int getY()
public boolean fit(TextureStitcher.Holder holder)
public void addAllFilledSlots(Consumer<TextureStitcher.Slot> consumer)