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
BlockState
s 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
StateProperty
that allows onlyBoolean
of which two possible values may exist:true
andfalse
.EnumStateProperty<E extends Comparable<E>>Represents a type ofStateProperty
that accepts an unknownEnum
set of values.Represents a type ofStateProperty
that acceptsInteger
based values, usually with a predefined range.StateContainer<S extends State<S>>StateMatcher<S extends State<S>>AStateMatcher
that will match variousState
s according to a pre-built list ofStateProperty
s and their values, such that not allStateProperty
s contained in aState
must be matched.A builder forStateMatcher
s.Factories for generating builders.StateProperty<T extends Comparable<T>>Represents a possible state property in aStateContainer
sState
.