Class IconProvider
java.lang.Object
org.cyclops.cyclopscore.client.icon.IconProvider
An alternative way of registering icons.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.resources.ResourceLocation
void
onPostTextureStitch
(net.minecraftforge.client.event.TextureStitchEvent.Post event) void
onPreTextureStitch
(net.minecraftforge.client.event.TextureStitchEvent.Pre event) protected void
registerIcon
(Object object, Field field, String location) protected net.minecraft.client.renderer.texture.TextureAtlasSprite
registerIcon
(net.minecraft.client.renderer.texture.TextureAtlas textureMap, String location) void
registerIconHolderObject
(Object object) Scan all icon fields for the given object.
-
Constructor Details
-
IconProvider
-
-
Method Details
-
registerIcon
-
registerIcon
protected net.minecraft.client.renderer.texture.TextureAtlasSprite registerIcon(net.minecraft.client.renderer.texture.TextureAtlas textureMap, String location) -
getIconId
-
onPreTextureStitch
public void onPreTextureStitch(net.minecraftforge.client.event.TextureStitchEvent.Pre event) -
onPostTextureStitch
public void onPostTextureStitch(net.minecraftforge.client.event.TextureStitchEvent.Post event) -
registerIconHolderObject
Scan all icon fields for the given object. This will automatically populate anyIcon
fields. This should be called before pre-texture stitching.- Parameters:
object
- The object to scan.
-