Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

How would I go about making more than one item with diffrent texture with the same item file with out having to write a java case or if statement for each texture with its own number?

package mymod;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.Item;

public class modItem extends Item
{
         private String itemTexture;
         public modItem (int par1, String texture)
         {
                 super(par1);
                 itemTexture = texture;
         }
         @Override
         @SideOnly(Side.CLIENT)
         public void func_94581_a(IconRegister iconRegister)
         {
                 iconIndex = iconRegister.func_94245_a("mymodid:"+itemTexture);
         }
}

  • Author

Thanks that's a big help to me I don't have to rewrote a ton of code in my main class because of your help.

Guest
This topic is now closed to further replies.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.