default float getFloat(final @NotNull String key) {
    return this.getFloat(key, 0f);
  }
Gets a float.

@param key the key
@return the float value, or {@code 0} if this compound does not contain a float tag
    with the specified key, or has a tag with a different type
@since 4.0.0
nbt/src/main/java/net/kyori/adventure/nbt/CompoundBinaryTag.java