Class IconProvider

java.lang.Object
org.cyclops.cyclopscore.client.icon.IconProvider

public class IconProvider extends Object
An alternative way of registering icons.
  • Constructor Details

  • Method Details

    • registerIcon

      protected void registerIcon(Object object, Field field, String location)
    • registerIcon

      protected net.minecraft.client.renderer.texture.TextureAtlasSprite registerIcon(net.minecraft.client.renderer.texture.TextureAtlas textureMap, String location)
    • getIconId

      protected net.minecraft.resources.ResourceLocation getIconId(String location)
    • onPreTextureStitch

      public void onPreTextureStitch(net.minecraftforge.client.event.TextureStitchEvent.Pre event)
    • onPostTextureStitch

      public void onPostTextureStitch(net.minecraftforge.client.event.TextureStitchEvent.Post event)
    • registerIconHolderObject

      public void registerIconHolderObject(Object object)
      Scan all icon fields for the given object. This will automatically populate any Icon fields. This should be called before pre-texture stitching.
      Parameters:
      object - The object to scan.