Class BlockState
java.lang.Object
org.geysermc.geyser.level.block.type.BlockState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblock()<T extends Comparable<T>>
T<T extends Comparable<T>>
T<T extends Comparable<T>>
TgetValueNullable(Property<T> property) booleanintjavaId()static @NonNull BlockStateof(int javaId) Null-safe method that looks up a Java block state ID in the BLOCK_STATES registry, and defaults to air if not found.toString()<T extends Comparable<T>>
BlockState
-
Constructor Details
-
BlockState
-
-
Method Details
-
getValue
-
getValueNullable
-
getValue
-
withValue
- Returns:
- the
BlockStateinstance with the given value.
-
block
-
javaId
public int javaId() -
is
-
toString
-
of
Null-safe method that looks up a Java block state ID in the BLOCK_STATES registry, and defaults to air if not found.- Parameters:
javaId- the Java block state ID to look up.- Returns:
- the corresponding block state, or air if the given ID wasn't registered and returned null.
-