2019-07-23 12:54:53 +02:00
|
|
|
package com.simibubi.create;
|
|
|
|
|
|
|
|
import net.minecraft.client.Minecraft;
|
|
|
|
import net.minecraft.util.ResourceLocation;
|
2019-08-10 01:00:36 +02:00
|
|
|
import net.minecraftforge.api.distmarker.Dist;
|
|
|
|
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
|
2019-07-23 12:54:53 +02:00
|
|
|
|
2019-08-10 01:00:36 +02:00
|
|
|
@EventBusSubscriber(value = Dist.CLIENT)
|
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-04-27 14:04:06 +02:00
|
|
|
HIGHLIGHT_CHECKERED("highlighted_checkerboard.png"),
|
2019-08-29 01:51:28 +02:00
|
|
|
SELECTION("selection.png"),
|
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() {
|
|
|
|
Minecraft.getInstance().getTextureManager().bindTexture(location);
|
|
|
|
}
|
2020-05-15 17:13:38 +02:00
|
|
|
|
|
|
|
public ResourceLocation getLocation() {
|
|
|
|
return location;
|
|
|
|
}
|
2019-07-23 12:54:53 +02:00
|
|
|
|
|
|
|
}
|