Interface FabricReadView
public interface FabricReadView
Fabric provided extension of ReadView.
Note: This interface is automatically implemented on ValueInput via Mixin and interface injection.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanChecks if thisValueInputcontains data under provided key.default Optional<byte[]> Returns an byte array present in thisValueInputunder provided key.default Optional<long[]> Returns an long array present in thisValueInputunder provided key.default Collection<String> keys()Returns a collection of keys available in thisValueInput.
-
Method Details
-
keys
Returns a collection of keys available in thisValueInput.- Returns:
- collection of keys or empty list if this
ValueInputis empty.
-
contains
Checks if thisValueInputcontains data under provided key.- Parameters:
key- key to check for- Returns:
- true, when this
ValueInputcontains data under provided key, otherwise false
-
getOptionalLongArray
Returns an long array present in thisValueInputunder provided key.- Parameters:
key- key to check for- Returns:
- long array wrapped in optional if long array is present, empty Optional otherwise
-
getOptionalByteArray
Returns an byte array present in thisValueInputunder provided key.- Parameters:
key- key to check for- Returns:
- byte array wrapped in optional if byte array is present, empty Optional otherwise
-