private static class SplashProgress.Texture
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
frames |
private int |
height |
private ResourceLocation |
location |
private int |
name |
private int |
size |
private int |
width |
Constructor and Description |
---|
Texture(ResourceLocation location,
ResourceLocation fallback) |
Texture(ResourceLocation location,
ResourceLocation fallback,
boolean allowRP) |
Modifier and Type | Method and Description |
---|---|
void |
bind() |
void |
delete() |
int |
getFrames() |
int |
getHeight() |
ResourceLocation |
getLocation() |
int |
getName() |
int |
getSize() |
float |
getU(int frame,
float u) |
float |
getV(int frame,
float v) |
int |
getWidth() |
void |
texCoord(int frame,
float u,
float v) |
private final ResourceLocation location
private final int name
private final int width
private final int height
private final int frames
private final int size
public Texture(ResourceLocation location, @Nullable ResourceLocation fallback)
public Texture(ResourceLocation location, @Nullable ResourceLocation fallback, boolean allowRP)
public ResourceLocation getLocation()
public int getName()
public int getWidth()
public int getHeight()
public int getFrames()
public int getSize()
public void bind()
public void delete()
public float getU(int frame, float u)
public float getV(int frame, float v)
public void texCoord(int frame, float u, float v)