package org.inventivetalent.npclib.nbt;

import org.inventivetalent.nbt.TagID;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({
				ElementType.FIELD,
				ElementType.METHOD,
				ElementType.PARAMETER })
public @interface NBT {

	/**
	 * Path for this NBT value. Every entry of the array is a TAG_Compound, but the last entry matches {@link #type()}/the field type
	 *
	 * @return NBT path
	 */
	String[] value() default "";

	/**
	 * Type of this NBT value
	 *
	 * @return NBT type
	 */
	int type() default TagID.TAG_END;

	/**
	 * Whether to write this value to NBT
	 *
	 * @return whether to write
	 */
	boolean write() default true;

	/**
	 * Whether to read this value from NBT
	 *
	 * @return whether to read
	 */
	boolean read() default true;

}

@@ -38,47 +38,8 @@
 t;%0A%0A
-import org.inventivetalent.nbt.TagID;%0A%0A
 impo
@@ -626,21 +626,10 @@
 ult 
-TagID.TAG_END
+-1
 ;%0A%0A%09

change default type to -1