mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-17 20:03:42 +01:00
fb72a686e7
- Outlines now support shading/normals - Refactored Value boxes to use the outliner system - Ported scrolloption, filter and frequency slot rendering
34 lines
No EOL
861 B
Java
34 lines
No EOL
861 B
Java
package com.simibubi.create;
|
|
|
|
import net.minecraft.client.Minecraft;
|
|
import net.minecraft.util.ResourceLocation;
|
|
import net.minecraftforge.api.distmarker.Dist;
|
|
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
|
|
|
|
@EventBusSubscriber(value = Dist.CLIENT)
|
|
public enum AllSpecialTextures {
|
|
|
|
BLANK("blank.png"),
|
|
CHECKERED("checkerboard.png"),
|
|
THIN_CHECKERED("thin_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().bindTexture(location);
|
|
}
|
|
|
|
public ResourceLocation getLocation() {
|
|
return location;
|
|
}
|
|
|
|
} |