All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.lenni0451.mcstructs.nbt.INbtArray Maven / Gradle / Ivy

package net.lenni0451.mcstructs.nbt;

import net.lenni0451.mcstructs.nbt.tags.ListTag;

/**
 * An interface for all Nbt array tags.
 *
 * @param  The nbt type of the tag
 * @param  The nbt type of the array elements
 * @param  The array type
 * @param 

The primitive type of the array */ public interface INbtArray, N extends INbtTag, A, P> extends Iterable

{ /** * @return The array value */ A getValue(); /** * Set the array value. * * @param value The new value * @return This tag */ T setValue(final A value); /** * @return The length of the array */ int getLength(); /** * @return If the array is empty */ boolean isEmpty(); /** * @return The array as a {@link ListTag} */ ListTag toListTag(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy