mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 05:19:41 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
250edf099c
commit
6815f579a7
1192 files changed
+60344
-62167
No files matched your search
@@ -8,34 +8,35 @@ import noppes.npcs.CustomItems;
|
||||
import noppes.npcs.constants.EnumNpcToolMaterial;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class ItemShield extends ItemNpcInterface{
|
||||
public EnumNpcToolMaterial material;
|
||||
public ItemShield(int par1, EnumNpcToolMaterial material) {
|
||||
super(par1);
|
||||
this.material = material;
|
||||
public class ItemShield extends ItemNpcInterface {
|
||||
public EnumNpcToolMaterial material;
|
||||
|
||||
public ItemShield(int par1, EnumNpcToolMaterial material) {
|
||||
super(par1);
|
||||
this.material = material;
|
||||
this.setMaxDamage(material.getMaxUses());
|
||||
setCreativeTab(CustomItems.tabWeapon);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderSpecial(){
|
||||
GL11.glScalef(0.6f, 0.6f,0.6f);
|
||||
GL11.glTranslatef(0f, 0f, -0.2f);
|
||||
@Override
|
||||
public void renderSpecial() {
|
||||
GL11.glScalef(0.6f, 0.6f, 0.6f);
|
||||
GL11.glTranslatef(0f, 0f, -0.2f);
|
||||
GL11.glRotatef(-6, 0, 1, 0);
|
||||
}
|
||||
|
||||
public EnumAction getItemUseAction(ItemStack par1ItemStack){
|
||||
}
|
||||
|
||||
public EnumAction getItemUseAction(ItemStack par1ItemStack) {
|
||||
return EnumAction.block;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer){
|
||||
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
|
||||
par3EntityPlayer.setItemInUse(par1ItemStack, this.getMaxItemUseDuration(par1ItemStack));
|
||||
return par1ItemStack;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxItemUseDuration(ItemStack par1ItemStack){
|
||||
|
||||
@Override
|
||||
public int getMaxItemUseDuration(ItemStack par1ItemStack) {
|
||||
return 72000;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user