mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-15 23:14:12 +01:00
34 lines
757 B
Java
34 lines
757 B
Java
package com.simibubi.create;
|
|
|
|
import net.minecraft.client.Minecraft;
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
public enum AllSpecialTextures {
|
|
|
|
BLANK("blank.png"),
|
|
CHECKERED("checkerboard.png"),
|
|
THIN_CHECKERED("thin_checkerboard.png"),
|
|
CUTOUT_CHECKERED("cutout_checkerboard.png"),
|
|
HIGHLIGHT_CHECKERED("highlighted_checkerboard.png"),
|
|
SELECTION("selection.png"),
|
|
|
|
;
|
|
|
|
public static final String ASSET_PATH = "textures/special/";
|
|
private ResourceLocation location;
|
|
|
|
private AllSpecialTextures(String filename) {
|
|
location = new ResourceLocation(Create.ID, ASSET_PATH + filename);
|
|
}
|
|
|
|
public void bind() {
|
|
Minecraft.getInstance()
|
|
.getTextureManager()
|
|
.bind(location);
|
|
}
|
|
|
|
public ResourceLocation getLocation() {
|
|
return location;
|
|
}
|
|
|
|
} |