Interface FabricValueInput


public interface FabricValueInput
Fabric provided extension of ValueInput.

Note: This interface is automatically implemented on ValueInput via Mixin and interface injection.

  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Checks if this ValueInput contains data under provided key.
    default Optional<byte[]>
    Returns an byte array present in this ValueInput under provided key.
    default Optional<long[]>
    Returns an long array present in this ValueInput under provided key.
    Returns a collection of keys available in this ValueInput.
  • Method Details

    • keySet

      default Collection<String> keySet()
      Returns a collection of keys available in this ValueInput.
      Returns:
      collection of keys or empty list if this ValueInput is empty.
    • contains

      default boolean contains(String key)
      Checks if this ValueInput contains data under provided key.
      Parameters:
      key - key to check for
      Returns:
      true, when this ValueInput contains data under provided key, otherwise false
    • getOptionalLongArray

      default Optional<long[]> getOptionalLongArray(String key)
      Returns an long array present in this ValueInput under provided key.
      Parameters:
      key - key to check for
      Returns:
      long array wrapped in optional if long array is present, empty Optional otherwise
    • getOptionalByteArray

      default Optional<byte[]> getOptionalByteArray(String key)
      Returns an byte array present in this ValueInput under provided key.
      Parameters:
      key - key to check for
      Returns:
      byte array wrapped in optional if byte array is present, empty Optional otherwise