package com.witchworks.common.item.magic.tools;

import com.witchworks.api.item.NBTHelper;
import com.witchworks.common.item.ItemMod;
import com.witchworks.common.lib.LibItemName;
import net.minecraft.item.ItemStack;

import java.util.UUID;

/**
 * Created by Joseph on 5/15/2017.
 */
public class ItemTaglock extends ItemMod {

	public ItemTaglock() {
		super(LibItemName.TAGLOCK);
	}

	public void getEntityTag(ItemStack stack, UUID uuid) {

		NBTHelper.setUniqueID(stack, "name", uuid);
	}


	public void addInformation() {

	}

	public void setTaggedEntity() {

	}
}

@@ -198,251 +198,918 @@
 aft.
-item.ItemStack;%0A%0Aimport java.util.UUID;%0A%0A/**%0A * Created by Joseph on 5/15/2017.%0A */%0Apublic class ItemTaglock extends ItemMod %7B%0A%0A%09public ItemTaglock() %7B%0A%09%09super(LibItemName.TAGLOCK);%0A%09%7D%0A%0A%09public void getEntityTag(ItemStack stack, UUID uuid
+entity.player.EntityPlayer;%0Aimport net.minecraft.entity.projectile.ProjectileHelper;%0Aimport net.minecraft.item.ItemStack;%0Aimport net.minecraft.util.ActionResult;%0Aimport net.minecraft.util.EnumActionResult;%0Aimport net.minecraft.util.EnumHand;%0Aimport net.minecraft.util.math.RayTraceResult;%0Aimport net.minecraft.world.World;%0A%0Aimport static net.minecraft.util.math.RayTraceResult.Type.ENTITY;%0A%0A/**%0A * Created by Joseph on 5/15/2017.%0A */%0Apublic class ItemTaglock extends ItemMod %7B%0A%0A%09public ItemTaglock() %7B%0A%09%09super(LibItemName.TAGLOCK);%0A%09%7D%0A%0A%09@Override%0A%09public ActionResult%3CItemStack%3E onItemRightClick(ItemStack itemStack, World world, EntityPlayer entityPlayer, EnumHand hand) %7B%0A%09%09RayTraceResult result = ProjectileHelper.forwardsRaycast(entityPlayer, true, true, entityPlayer);%0A%09%09ActionResult%3CItemStack%3E actionResult = ActionResult.newResult(EnumActionResult.PASS, itemStack);%0A%09%09if (result.typeOfHit == ENTITY
 ) %7B%0A
-%0A
+%09
 %09%09NB
@@ -1128,17 +1128,21 @@
 niqueID(
-s
+itemS
 tack, %22n
@@ -1151,90 +1151,146 @@
 e%22, 
-uuid);%0A%09%7D%0A%0A%0A%09public void addInformation() %7B%0A%0A%09%7D%0A%0A%09public void setTaggedEntity() %7B%0A
+result.entityHit.getUniqueID());%0A%09%09%09actionResult = ActionResult.newResult(EnumActionResult.SUCCESS, itemStack);%0A%09%09%7D%0A%09%09return actionResult;
 %0A%09%7D%0A

rework a bit after the sandman stops trying to hurt me