// Path: src/main/java/openperipheral/addons/glasses/TerminalIdAccess.java
// abstract static class HandSetterAdapter implements ITerminalIdSetter {
// 	@Override
// 	public boolean setFor(EntityPlayer player, long guid) {
// 		final ItemStack stack = player.getHeldItem();
// 		return stack != null? setFor(stack, guid) : false;
// 	}
// 
// 	protected abstract boolean setFor(ItemStack helmet, long guid);
// 
// 	@Override
// 	public int getPriority() {
// 		return 0;
// 	}
// }
// 
// Path: src/main/java/openperipheral/addons/glasses/TerminalIdAccess.java
// abstract static class HelmetGetterAdapter implements ITerminalIdGetter {
// 	@Override
// 	public Optional<Long> getFor(EntityPlayer player) {
// 		final ItemStack stack = TerminalUtils.getHeadSlot(player);
// 		return stack != null? getFor(stack) : Optional.<Long> absent();
// 	}
// 
// 	protected abstract Optional<Long> getFor(ItemStack helmet);
// 
// 	@Override
// 	public int getPriority() {
// 		return 0;
// 	}
// }


import com.google.common.base.Optional;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.common.util.Constants;
import openmods.utils.ItemUtils;
import openperipheral.addons.glasses.TerminalIdAccess.HandSetterAdapter;
import openperipheral.addons.glasses.TerminalIdAccess.HelmetGetterAdapter;
package openperipheral.addons.glasses;


public class NbtGuidProviders {

	private static final String MAIN_TAG = "OPA-Terminal";

	private static final String GUID_TAG = "Guid";

	public static class NbtGetter extends HelmetGetterAdapter {
		@Override
		public Optional<Long> getFor(ItemStack stack) {
			return getTerminalGuid(stack);
		}
	}

	public static class NbtSetter extends HandSetterAdapter {
		@Override
		public boolean setFor(ItemStack stack, long guid) {
// Path: src/main/java/openperipheral/addons/glasses/TerminalIdAccess.java
// abstract static class HandSetterAdapter implements ITerminalIdSetter {
// 	@Override
// 	public boolean setFor(EntityPlayer player, long guid) {
// 		final ItemStack stack = player.getHeldItem();
// 		return stack != null? setFor(stack, guid) : false;
// 	}
// 
// 	protected abstract boolean setFor(ItemStack helmet, long guid);
// 
// 	@Override
// 	public int getPriority() {
// 		return 0;
// 	}
// }
// 
// Path: src/main/java/openperipheral/addons/glasses/TerminalIdAccess.java
// abstract static class HelmetGetterAdapter implements ITerminalIdGetter {
// 	@Override
// 	public Optional<Long> getFor(EntityPlayer player) {
// 		final ItemStack stack = TerminalUtils.getHeadSlot(player);
// 		return stack != null? getFor(stack) : Optional.<Long> absent();
// 	}
// 
// 	protected abstract Optional<Long> getFor(ItemStack helmet);
// 
// 	@Override
// 	public int getPriority() {
// 		return 0;
// 	}
// }


// Path: src/main/java/openperipheral/addons/glasses/NbtGuidProviders.java
import com.google.common.base.Optional;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.common.util.Constants;
import openmods.utils.ItemUtils;
import openperipheral.addons.glasses.TerminalIdAccess.HandSetterAdapter;
import openperipheral.addons.glasses.TerminalIdAccess.HelmetGetterAdapter;

package openperipheral.addons.glasses;


public class NbtGuidProviders {

	private static final String MAIN_TAG = "OPA-Terminal";

	private static final String GUID_TAG = "Guid";

	public static class NbtGetter extends HelmetGetterAdapter {
		@Override
		public Optional<Long> getFor(ItemStack stack) {
			return getTerminalGuid(stack);
		}
	}

	public static class NbtSetter extends HandSetterAdapter {
		@Override
		public boolean setFor(ItemStack stack, long guid) {
			final NBTTagCompound itemTag = stack.getTagCompound();