Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.malkuthe.apotheosis.items;
- import com.malkuthe.apotheosis.api.SAAItemEmpowered;
- import com.malkuthe.apotheosis.items.reference.ItemRepo;
- import com.malkuthe.apotheosis.items.reference.SAAItem;
- import com.malkuthe.apotheosis.potion.PotionHandler;
- import cpw.mods.fml.common.registry.GameRegistry;
- import net.minecraft.entity.item.EntityItem;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.entity.player.InventoryPlayer;
- import net.minecraft.item.ItemStack;
- import net.minecraft.potion.PotionEffect;
- import net.minecraft.world.World;
- /**
- * Created by Malkuthe on 6/23/2014.
- */
- public class ItemConsumingRage extends SAAItemEmpowered {
- public ItemConsumingRage(String name) {
- super(name);
- setEmpoweredItemProperties(true, 1, ItemRepo.item_songs, 2, 40, 45);
- }
- @Override
- public void onCreated(ItemStack itemstack, World world, EntityPlayer player){
- super.onCreated(itemstack, world, player);
- if(!world.isRemote){
- player.addPotionEffect(new PotionEffect(PotionHandler.empowerPotion.id, getDurationEmpower()*20 , 0));
- }
- }
- public void onUpdate(ItemStack itemstack, World world, EntityPlayer player, int i, boolean j){
- super.onUpdate(itemstack, world, player, i, j);
- System.out.println("onupdate is working?");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment