Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Seroemod.Lightsabers;
- import cpw.mods.fml.relauncher.Side;
- import cpw.mods.fml.relauncher.SideOnly;
- import net.minecraft.client.renderer.texture.IconRegister;
- import net.minecraft.creativetab.CreativeTabs;
- import net.minecraft.entity.Entity;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.item.Item;
- import net.minecraft.item.ItemStack;
- import net.minecraft.util.MovingObjectPosition;
- import net.minecraft.world.World;
- import net.minecraftforge.client.event.sound.PlaySoundEffectEvent;
- import net.minecraftforge.client.event.sound.PlaySoundEvent;
- import Seroemod.Lightsabers.BlueLightsaber;
- import Seroemod.SeroeMod;
- import Seroemod.SeroeModSound;
- public class BlueLightsaberHilt extends Item
- {
- public BlueLightsaberHilt(int par1) {
- super(par1);
- this.setMaxStackSize(1);
- this.setCreativeTab(CreativeTabs.tabCombat);
- this.setUnlocalizedName("hiltBlueLightsaber");
- }
- @Override
- public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
- {
- par2World.playSoundAtEntity(par3EntityPlayer, "seroemod:extend", 500.0F, 1.0F);
- return ISblueLightsaber;
- }
- @SideOnly(Side.CLIENT)
- public void registerIcons(IconRegister reg)
- {
- this.itemIcon = reg.registerIcon("seroemod:hilt_bluelightsaber");
- }
- ItemStack ISblueLightsaber = new ItemStack(SeroeMod.blueLightsaber);
- }
Advertisement
Add Comment
Please, Sign In to add comment