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