java.lang.Object
org.cloudburstmc.api.block.BlockState
-
Constructor Summary
ConstructorsConstructorDescriptionBlockState(BlockType type, Map<BlockTrait<?>, Comparable<?>> traits) BlockState(BlockType type, Map<BlockTrait<?>, Comparable<?>> traits, BlockBehavior behavior) -
Method Summary
Modifier and TypeMethodDescriptioncopyTraits(BlockState from) decrementTrait(IntegerBlockTrait trait) <T extends Comparable<T>>
TensureTrait(BlockTrait<T> trait) Map<BlockTrait<?>,Comparable<?>> getType()booleaninCategory(BlockCategory category) incrementTrait(IntegerBlockTrait trait) voidsetBehavior(BlockBehavior behavior) toggleTrait(BooleanBlockTrait trait) toString()<T extends Comparable<T>>
BlockStatewithTrait(BlockTrait<T> trait, T value) withTrait(BooleanBlockTrait trait, boolean value) withTrait(IntegerBlockTrait trait, int value)