Package net.kyori.adventure.nbt
Interface IntArrayBinaryTag
- 
- All Superinterfaces:
- ArrayBinaryTag,- BinaryTag,- BinaryTagLike,- net.kyori.examination.Examinable,- java.lang.Iterable<java.lang.Integer>
 
 public interface IntArrayBinaryTag extends ArrayBinaryTag, java.lang.Iterable<java.lang.Integer> A binary tag holding anint-array value.- Since:
- 4.0.0
- Since Minecraft:
- 1.2.1
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voidforEachInt(@NotNull java.util.function.IntConsumer action)Perform an action for every int in the backing array.intget(int index)Gets the value atindexin this tag.static @NotNull IntArrayBinaryTagintArrayBinaryTag(int @NotNull ... value)Creates a binary tag holding anint-array value.@NotNull java.util.PrimitiveIterator.OfIntiterator()static @NotNull IntArrayBinaryTagof(int @NotNull ... value)Deprecated.for removal since 4.14.0, useintArrayBinaryTag(int...)instead.intsize()Get the length of the array.@NotNull java.util.Spliterator.OfIntspliterator()@NotNull java.util.stream.IntStreamstream()Create a stream whose elements are the elements of this array tag.default @NotNull BinaryTagType<IntArrayBinaryTag>type()Gets the tag type.int @NotNull []value()Gets the value.- 
Methods inherited from interface net.kyori.adventure.nbt.BinaryTagasBinaryTag
 
- 
 
- 
- 
- 
Method Detail- 
intArrayBinaryTag@NotNull static @NotNull IntArrayBinaryTag intArrayBinaryTag(int @NotNull ... value) Creates a binary tag holding anint-array value.- Parameters:
- value- the value
- Returns:
- a binary tag
- Since:
- 4.14.0
 
 - 
of@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull static @NotNull IntArrayBinaryTag of(int @NotNull ... value) Deprecated.for removal since 4.14.0, useintArrayBinaryTag(int...)instead.Creates a binary tag holding anint-array value.- Parameters:
- value- the value
- Returns:
- a binary tag
- Since:
- 4.0.0
 
 - 
type@NotNull default @NotNull BinaryTagType<IntArrayBinaryTag> type() Description copied from interface:BinaryTagGets the tag type.- Specified by:
- typein interface- ArrayBinaryTag
- Specified by:
- typein interface- BinaryTag
- Returns:
- the tag type
 
 - 
valueint @NotNull [] value() Gets the value.The returned array is a copy. - Returns:
- the value
- Since:
- 4.0.0
 
 - 
sizeint size() Get the length of the array.- Returns:
- value size
- Since:
- 4.2.0
 
 - 
getint get(int index) Gets the value atindexin this tag.- Parameters:
- index- the index in the array
- Returns:
- the int at the index in the array
- Throws:
- java.lang.IndexOutOfBoundsException- if idx < 0 or ≥- size()
- Since:
- 4.2.0
 
 - 
iterator@NotNull java.util.PrimitiveIterator.OfInt iterator() The returned iterator is immutable. - Specified by:
- iteratorin interface- java.lang.Iterable<java.lang.Integer>
- Since:
- 4.2.0
 
 - 
spliterator@NotNull java.util.Spliterator.OfInt spliterator() - Specified by:
- spliteratorin interface- java.lang.Iterable<java.lang.Integer>
 
 - 
stream@NotNull @NotNull java.util.stream.IntStream stream() Create a stream whose elements are the elements of this array tag.- Returns:
- a new stream
- Since:
- 4.2.0
 
 - 
forEachIntvoid forEachInt(@NotNull @NotNull java.util.function.IntConsumer action)Perform an action for every int in the backing array.- Parameters:
- action- the action to perform
- Since:
- 4.2.0
 
 
- 
 
-