default float getFloat(final @Range(from = 0, to = Integer.MAX_VALUE) int index, final float defaultValue) {
    final BinaryTag tag = this.get(index);
    if (tag.type().numeric()) {
      return ((NumberBinaryTag) tag).floatValue();
    }
    return defaultValue;
  }
Gets a float.

@param index the index
@param defaultValue the default value
@return the float value, or {@code defaultValue}
@since 4.0.0
nbt/src/main/java/net/kyori/adventure/nbt/ListBinaryTag.java