2019-07-23 12:54:53 +02:00
|
|
|
package com.simibubi.create;
|
|
|
|
|
2021-11-02 06:18:30 +01:00
|
|
|
import com.mojang.blaze3d.systems.RenderSystem;
|
|
|
|
|
2021-11-02 00:08:20 +01:00
|
|
|
import net.minecraft.resources.ResourceLocation;
|
2019-07-23 12:54:53 +02:00
|
|
|
|
|
|
|
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"),
|
2022-05-05 01:35:08 +02:00
|
|
|
GLUE("glue.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) {
|
2021-10-02 22:02:27 +02:00
|
|
|
location = Create.asResource(ASSET_PATH + filename);
|
2019-07-23 12:54:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public void bind() {
|
2021-11-02 06:18:30 +01:00
|
|
|
RenderSystem.setShaderTexture(0, 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
|
|
|
|
|
|
|
}
|