Package org.spongepowered.api.state
Interface StateContainer<S extends State<S>>
public interface StateContainer<S extends State<S>>
- 
Method SummaryModifier and TypeMethodDescriptionfindStateProperty(String name) Attempts to retrieve theStatePropertyinstance associated with thisStateContainerby name.
- 
Method Details- 
validStates
- 
defaultStateS defaultState()
- 
statePropertiesCollection<StateProperty<?>> stateProperties()
- 
findStatePropertyAttempts to retrieve theStatePropertyinstance associated with thisStateContainerby name. If there is noStatePropertyavailable,Optional.empty()is returned.- Parameters:
- name- The state property name
- Returns:
- The state property, if available
 
 
-