Module org.spongepowered.plugin.spi
Interface Blackboard
- All Known Implementing Classes:
StandardBlackboard
public interface Blackboard
An entity that stores various properties for an
environment-
Method Summary
-
Method Details
-
set
Sets a value bykey.- Type Parameters:
V- The value type- Parameters:
key- The keyvalue- The value- Throws:
IllegalStateException- if the key already has a corresponding value
-
get
- Type Parameters:
V- The value type- Parameters:
key- The key- Returns:
- The value
- Throws:
IllegalArgumentException- if the key has no corresponding value
-
find
- Type Parameters:
V- The value type- Parameters:
key- The key- Returns:
- The value or
Optional.empty()otherwise
-