Interface FabricReadView


public interface FabricReadView
Fabric provided extension of ReadView.

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

  • Method Details

    • keys

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

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

      default Optional<long[]> getOptionalLongArray(String key)
      Returns an long array present in this ReadView 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 ReadView under provided key.
      Parameters:
      key - key to check for
      Returns:
      byte array wrapped in optional if byte array is present, empty Optional otherwise