Package org.spongepowered.api.state
@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
package org.spongepowered.api.state
A fallback API for handling properties of
BlockStates such that the values that
are not directly supported by the API can still be represented with a
StateProperty. Common cases where
support only through a StateProperty is when mods are introduced
to the game, providing custom content and custom states.-
ClassDescriptionRepresents a type of
StatePropertythat allows onlyBooleanof which two possible values may exist:trueandfalse.EnumStateProperty<E extends Comparable<E>>Represents a type ofStatePropertythat accepts an unknownEnumset of values.Represents a type ofStatePropertythat acceptsIntegerbased values, usually with a predefined range.StateContainer<S extends State<S>>StateMatcher<S extends State<S>>AStateMatcherthat will match variousStates according to a pre-built list ofStatePropertys and their values, such that not allStatePropertys contained in aStatemust be matched.A builder forStateMatchers.Factories for generating builders.StateProperty<T extends Comparable<T>>Represents a possible state property in aStateContainersState.