@ParametersAreNonnullByDefault public interface BlockState
@Nonnull Identifier getType()
@Nullable <T extends Comparable<T>> T getTrait(BlockTrait<T> trait)
@Nonnull <T extends Comparable<T>> T ensureTrait(BlockTrait<T> trait)
@Nonnull com.google.common.collect.ImmutableMap<BlockTrait<?>,Comparable<?>> getTraits()
@Nonnull <T extends Comparable<T>> BlockState withTrait(BlockTrait<T> trait, T value)
@Nonnull default <T extends Comparable<T>> BlockState copyTrait(BlockTrait<T> trait, BlockState from)
@Nonnull BlockState copyTraits(BlockState from)
@Nonnull BlockState withTrait(IntegerBlockTrait trait, int value)
@Nonnull default BlockState incrementTrait(IntegerBlockTrait trait)
@Nonnull default BlockState decrementTrait(IntegerBlockTrait trait)
@Nonnull BlockState withTrait(BooleanBlockTrait trait, boolean value)
@Nonnull default BlockState toggleTrait(BooleanBlockTrait trait)
default <T extends Comparable<T>> BlockState resetTrait(BlockTrait<T> trait)
BlockBehavior getBehavior()
@Nonnull BlockState defaultState()
default boolean inCategory(BlockCategory category)
static BlockState get(@Nonnull Identifier blockType)
Copyright © 2020. All rights reserved.