Fixed render for item staff when held.
This commit is contained in:
parent
3d2c24fee3
commit
377690e0cf
6 changed files with 35 additions and 17 deletions
25
common/MysticWorld/Items/ItemStaff.java
Normal file
25
common/MysticWorld/Items/ItemStaff.java
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
package MysticWorld.Items;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
import MysticWorld.MysticWorld;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
|
||||||
|
public class ItemStaff extends Item
|
||||||
|
{
|
||||||
|
|
||||||
|
public ItemStaff(int id)
|
||||||
|
{
|
||||||
|
super(id);
|
||||||
|
this.setMaxStackSize(1);
|
||||||
|
this.setMaxDamage(200);
|
||||||
|
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||||
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public boolean isFull3D()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -2,6 +2,9 @@ package MysticWorld.Items;
|
||||||
|
|
||||||
import org.lwjgl.input.Keyboard;
|
import org.lwjgl.input.Keyboard;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
import MysticWorld.MysticWorld;
|
import MysticWorld.MysticWorld;
|
||||||
import MysticWorld.Entity.EntityChargeAir;
|
import MysticWorld.Entity.EntityChargeAir;
|
||||||
import net.minecraft.client.renderer.texture.IconRegister;
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
|
|
@ -9,16 +12,14 @@ import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.item.ItemTool;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
public class ItemStaffAir extends Item {
|
public class ItemStaffAir extends ItemStaff {
|
||||||
|
|
||||||
public ItemStaffAir(int id)
|
public ItemStaffAir(int id)
|
||||||
{
|
{
|
||||||
super(id);
|
super(id);
|
||||||
this.setMaxStackSize(1);
|
|
||||||
this.setMaxDamage(200);
|
|
||||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -55,4 +56,5 @@ public class ItemStaffAir extends Item {
|
||||||
return itemStack;
|
return itemStack;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,13 +29,10 @@ import net.minecraftforge.event.Event.Result;
|
||||||
import net.minecraftforge.event.entity.player.BonemealEvent;
|
import net.minecraftforge.event.entity.player.BonemealEvent;
|
||||||
import net.minecraftforge.event.entity.player.UseHoeEvent;
|
import net.minecraftforge.event.entity.player.UseHoeEvent;
|
||||||
|
|
||||||
public class ItemStaffEarth extends Item {
|
public class ItemStaffEarth extends ItemStaff {
|
||||||
|
|
||||||
public ItemStaffEarth(int id) {
|
public ItemStaffEarth(int id) {
|
||||||
super(id);
|
super(id);
|
||||||
this.setMaxStackSize(1);
|
|
||||||
this.setMaxDamage(200);
|
|
||||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -16,13 +16,10 @@ import net.minecraft.util.EnumMovingObjectType;
|
||||||
import net.minecraft.util.MovingObjectPosition;
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
public class ItemStaffEnegy extends Item{
|
public class ItemStaffEnegy extends ItemStaff {
|
||||||
|
|
||||||
public ItemStaffEnegy(int id) {
|
public ItemStaffEnegy(int id) {
|
||||||
super(id);
|
super(id);
|
||||||
this.setMaxStackSize(1);
|
|
||||||
this.setMaxDamage(200);
|
|
||||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -24,13 +24,10 @@ import net.minecraft.util.EnumMovingObjectType;
|
||||||
import net.minecraft.util.MovingObjectPosition;
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
public class ItemStaffFire extends Item {
|
public class ItemStaffFire extends ItemStaff {
|
||||||
|
|
||||||
public ItemStaffFire(int id) {
|
public ItemStaffFire(int id) {
|
||||||
super(id);
|
super(id);
|
||||||
this.setMaxStackSize(1);
|
|
||||||
this.setMaxDamage(200);
|
|
||||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ import net.minecraftforge.common.MinecraftForge;
|
||||||
import net.minecraftforge.event.Event.Result;
|
import net.minecraftforge.event.Event.Result;
|
||||||
import net.minecraftforge.event.entity.player.UseHoeEvent;
|
import net.minecraftforge.event.entity.player.UseHoeEvent;
|
||||||
|
|
||||||
public class ItemStaffWater extends Item {
|
public class ItemStaffWater extends ItemStaff {
|
||||||
|
|
||||||
public ItemStaffWater(int id) {
|
public ItemStaffWater(int id) {
|
||||||
super(id);
|
super(id);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue