Files
CustomNPC-Plus/src/main/java/noppes/npcs/items/ItemNpcWeaponInterface.java
T

34 lines
953 B
Java
Raw Normal View History

2018-09-13 12:03:28 -04:00
package noppes.npcs.items;
2023-01-12 21:33:06 -05:00
import cpw.mods.fml.common.registry.GameRegistry;
2018-09-13 12:03:28 -04:00
import net.minecraft.item.Item;
import net.minecraft.item.ItemSword;
import noppes.npcs.CustomItems;
import noppes.npcs.CustomNpcs;
import org.lwjgl.opengl.GL11;
2025-03-12 20:12:01 -04:00
public class ItemNpcWeaponInterface extends ItemSword implements ItemRenderInterface {
2018-09-13 12:03:28 -04:00
2025-03-12 20:12:01 -04:00
public ItemNpcWeaponInterface(int par1, ToolMaterial material) {
this(material);
}
public ItemNpcWeaponInterface(ToolMaterial material) {
super(material);
setCreativeTab(CustomItems.tab);
CustomNpcs.proxy.registerItem(this);
setCreativeTab(CustomItems.tabWeapon);
}
public void renderSpecial() {
GL11.glScalef(0.66f, 0.66f, 0.66f);
2018-09-13 12:03:28 -04:00
GL11.glTranslatef(0.16f, 0.26f, 0.06f);
}
@Override
2025-03-12 20:12:01 -04:00
public Item setUnlocalizedName(String name) {
GameRegistry.registerItem(this, name);
return super.setUnlocalizedName(name);
2018-09-13 12:03:28 -04:00
}
}