Get rid of some of the many stupid parXX parameter names

This commit is contained in:
Vincent Lee committed 2016-06-11 14:42:18 -05:00
1 parent ece95aca1c
commit 8bca8bb5f6
91 files changed
+584 -584

No files matched your search

@@ -103,20 +103,20 @@ public class ItemSextant extends ItemMod {
@Nonnull
@Override
public ActionResult<ItemStack> onItemRightClick(@Nonnull ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer, EnumHand hand) {
public ActionResult<ItemStack> onItemRightClick(@Nonnull ItemStack par1ItemStack, World world, EntityPlayer player, EnumHand hand) {
Botania.proxy.removeSextantMultiblock();
if(!par3EntityPlayer.isSneaking()) {
RayTraceResult pos = ToolCommons.raytraceFromEntity(par2World, par3EntityPlayer, false, 128);
if(!player.isSneaking()) {
RayTraceResult pos = ToolCommons.raytraceFromEntity(world, player, false, 128);
if(pos != null && pos.entityHit == null && pos.getBlockPos() != null) {
if(!par2World.isRemote) {
if(!world.isRemote) {
ItemNBTHelper.setInt(par1ItemStack, TAG_SOURCE_X, pos.getBlockPos().getX());
ItemNBTHelper.setInt(par1ItemStack, TAG_SOURCE_Y, pos.getBlockPos().getY());
ItemNBTHelper.setInt(par1ItemStack, TAG_SOURCE_Z, pos.getBlockPos().getZ());
}
} else ItemNBTHelper.setInt(par1ItemStack, TAG_SOURCE_Y, -1);
par3EntityPlayer.setActiveHand(hand);
player.setActiveHand(hand);
}
return ActionResult.newResult(EnumActionResult.SUCCESS, par1ItemStack);