Package org.kingdoms.utils.nbt
Class NBTWrappers.NBTTagList<T>
java.lang.Object
org.kingdoms.utils.nbt.NBTWrappers.NBTBase<List<NBTWrappers.NBTBase<T>>>
org.kingdoms.utils.nbt.NBTWrappers.NBTTagList<T>
- Enclosing class:
- NBTWrappers
public static final class NBTWrappers.NBTTagList<T>
extends NBTWrappers.NBTBase<List<NBTWrappers.NBTBase<T>>>
-
Field Summary
Fields inherited from class org.kingdoms.utils.nbt.NBTWrappers.NBTBase
value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(NBTWrappers.NBTBase<T> base) Adds theNBTWrappers.NBTBase, if the type of the list is correct or the list is emptystatic NBTWrappers.NBTTagList<?>booleanisType(NBTWrappers.NBTBase<?> type) toNBT()toString()Methods inherited from class org.kingdoms.utils.nbt.NBTWrappers.NBTBase
getValue
-
Constructor Details
-
NBTTagList
-
NBTTagList
public NBTTagList()
-
-
Method Details
-
fromNBT
-
add
Adds theNBTWrappers.NBTBase, if the type of the list is correct or the list is empty- Parameters:
base- TheNBTWrappers.NBTBaseto add- Returns:
- True if it was added.
-
isType
- Parameters:
type- The type to check for- Returns:
- True if the list is empty or this type
-
toNBT
- Specified by:
toNBTin classNBTWrappers.NBTBase<List<NBTWrappers.NBTBase<T>>>
-
toString
-