mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-14 22:44:07 +01:00
071482bb26
- Outliner can now be used in 1.15 - Ported Chassis range display to use new Outlines
33 lines
819 B
Java
33 lines
819 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"),
|
|
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;
|
|
}
|
|
|
|
} |