IC2 Classic already loads sprites from sprite sheets. Why would I want another way of doing the same thing?
Yes IC2 Classic does already have the same functionality, however your methods (from what I've seen in my decompilier) do not seem very modular, nonetheless easy. For example, when you want to register a sprite to Minecraft's internal sheet, you set a class' static field value to be that sheet you want. However my method does not involve those nasty hacks at all. What I do instead is specify the texture sheet, then the icon's name, and lastly register the sprite.
For example:
Your method (not exact, this is from the top of my head):
Display Spoiler
IIcon icon;
public void registerIcons(IIconRegister registry) {
SpriteSheet.sheet = "/Sheet.png";
icon = SpriteSheet.registerSprite(registry, 0, 1);//0 Specifies the x of the sprite value. 1 Specifies the y of the sprite value.
}
Mine (again, not exact, and off the top of my head):
Display Spoiler
IIcon icon;
public void registerIcon(IIconRegister registry) {
icon = SpriteHelper.createNewSpriteSheetAtlas("/Sheet.png", "iconName", registry, 0, 1, 16);//0 Specifies the x value of the sprite. 1 Specifies the y value of the sprite.//16 Specifies the size of the sprite.
}
If it feels like I'm intruding your space or something, I am sorry, and apologise sincerely in advance.