mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 07:19:05 +00:00
1.7.10 Files
Files added
This commit is contained in:
1 parent
393ea9b463
commit
a31efb2dc3
1768 files changed
+84831
No files matched your search
@@ -0,0 +1,34 @@
|
||||
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);
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user