@ParametersAreNonnullByDefault public final class CloudBlockState extends Object implements BlockState
| Modifier and Type | Method and Description |
|---|---|
void |
buildStateTable(BlockState defaultState,
Map<Map<BlockTrait<?>,Comparable<?>>,CloudBlockState> map) |
BlockState |
copyTraits(BlockState from) |
BlockState |
defaultState() |
<T extends Comparable<T>> |
ensureTrait(BlockTrait<T> trait) |
BlockBehavior |
getBehavior() |
<T extends Comparable<T>> |
getTrait(BlockTrait<T> trait) |
com.google.common.collect.ImmutableMap<BlockTrait<?>,Comparable<?>> |
getTraits() |
Identifier |
getType() |
String |
toString() |
<T extends Comparable<T>> |
withTrait(BlockTrait<T> trait,
T value) |
CloudBlockState |
withTrait(BooleanBlockTrait trait,
boolean value) |
CloudBlockState |
withTrait(IntegerBlockTrait trait,
int value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopyTrait, decrementTrait, get, inCategory, incrementTrait, resetTrait, toggleTrait@Nonnull public Identifier getType()
getType in interface BlockState@Nullable public <T extends Comparable<T>> T getTrait(BlockTrait<T> trait)
getTrait in interface BlockState@Nonnull public <T extends Comparable<T>> T ensureTrait(BlockTrait<T> trait)
ensureTrait in interface BlockState@Nonnull public com.google.common.collect.ImmutableMap<BlockTrait<?>,Comparable<?>> getTraits()
getTraits in interface BlockState@Nonnull public <T extends Comparable<T>> CloudBlockState withTrait(BlockTrait<T> trait, T value)
withTrait in interface BlockState@Nonnull public CloudBlockState withTrait(IntegerBlockTrait trait, int value)
withTrait in interface BlockState@Nonnull public CloudBlockState withTrait(BooleanBlockTrait trait, boolean value)
withTrait in interface BlockState@Nonnull public BlockState copyTraits(BlockState from)
copyTraits in interface BlockStatepublic BlockBehavior getBehavior()
getBehavior in interface BlockState@Nonnull public BlockState defaultState()
defaultState in interface BlockStatepublic void buildStateTable(BlockState defaultState, Map<Map<BlockTrait<?>,Comparable<?>>,CloudBlockState> map)
Copyright © 2020. All rights reserved.