2019-07-23 12:54:53 +02:00
|
|
|
package com.simibubi.create;
|
|
|
|
|
|
|
|
import net.minecraft.client.Minecraft;
|
|
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
|
|
|
|
public enum AllSpecialTextures {
|
|
|
|
|
2020-04-16 20:46:15 +02:00
|
|
|
BLANK("blank.png"),
|
2020-04-27 14:04:06 +02:00
|
|
|
CHECKERED("checkerboard.png"),
|
2020-05-16 17:51:29 +02:00
|
|
|
THIN_CHECKERED("thin_checkerboard.png"),
|
2020-08-24 21:02:03 +02:00
|
|
|
CUTOUT_CHECKERED("cutout_checkerboard.png"),
|
2020-04-27 14:04:06 +02:00
|
|
|
HIGHLIGHT_CHECKERED("highlighted_checkerboard.png"),
|
2019-08-29 01:51:28 +02:00
|
|
|
SELECTION("selection.png"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2019-08-06 19:00:51 +02:00
|
|
|
;
|
2019-07-23 12:54:53 +02:00
|
|
|
|
|
|
|
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() {
|
2021-04-08 19:22:11 +02:00
|
|
|
Minecraft.getInstance()
|
|
|
|
.getTextureManager()
|
|
|
|
.bindTexture(location);
|
2019-07-23 12:54:53 +02:00
|
|
|
}
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2020-05-15 17:13:38 +02:00
|
|
|
public ResourceLocation getLocation() {
|
|
|
|
return location;
|
|
|
|
}
|
2019-07-23 12:54:53 +02:00
|
|
|
|
|
|
|
}
|