Skip to content

Commit

Permalink
remove function so I can see if its workig
Browse files Browse the repository at this point in the history
  • Loading branch information
stpv221 authored Jun 6, 2024
1 parent ee8abc0 commit ee725a4
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/main/java/net/minecraft/item/ItemThunderStaff.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.effect.EntityThunderBolt;
import net.minecraft.stats.StatList;
import net.minecraft.world.World;

Expand Down Expand Up @@ -31,17 +30,4 @@ public ItemThunderStaff() {
this.maxStackSize = 1;
this.setCreativeTab(CreativeTabs.tabMisc);
}

/**+
* Called whenever this item is equipped and the right mouse
* button is pressed. Args: itemStack, world, entityPlayer
*/
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer) {
if (!world.isRemote) {
world.spawnEntityInWorld(new EntityThunderBolt(world, entityplayer));
}

entityplayer.triggerAchievement(StatList.objectUseStats[Item.getIdFromItem(this)]);
return itemstack;
}
}

0 comments on commit ee725a4

Please sign in to comment.