| Modifier and Type | Method and Description |
|---|---|
BlockTrait<?> |
BlockTraits.from(String name) |
BlockTrait<?> |
BlockTraits.fromVanilla(String name) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<BlockTrait<?>,Comparable<?>> |
BlockState.getTraits() |
com.google.common.collect.ImmutableMap<BlockTrait<?>,Comparable<?>> |
CloudBlockState.getTraits() |
| Modifier and Type | Method and Description |
|---|---|
void |
BlockPalette.addBlock(Identifier identifier,
BlockSerializer serializer,
BlockTrait<?>[] traits) |
default <T extends Comparable<T>> |
BlockState.copyTrait(BlockTrait<T> trait,
BlockState from) |
<T extends Comparable<T>> |
BlockState.ensureTrait(BlockTrait<T> trait) |
<T extends Comparable<T>> |
CloudBlockState.ensureTrait(BlockTrait<T> trait) |
<T extends Comparable<T>> |
BlockState.getTrait(BlockTrait<T> trait) |
<T extends Comparable<T>> |
CloudBlockState.getTrait(BlockTrait<T> trait) |
void |
BlockTraits.register(BlockTrait<?> trait) |
default <T extends Comparable<T>> |
BlockState.resetTrait(BlockTrait<T> trait) |
<T extends Comparable<T>> |
BlockState.withTrait(BlockTrait<T> trait,
T value) |
<T extends Comparable<T>> |
CloudBlockState.withTrait(BlockTrait<T> trait,
T value) |
| Modifier and Type | Method and Description |
|---|---|
void |
CloudBlockState.buildStateTable(BlockState defaultState,
Map<Map<BlockTrait<?>,Comparable<?>>,CloudBlockState> map) |
| Modifier and Type | Field and Description |
|---|---|
protected BlockTrait<RailDirection> |
BlockBehaviorRail.directionTrait |
protected BlockTrait |
BlockBehaviorDoubleSlab.typeTrait |
| Constructor and Description |
|---|
BlockBehaviorDoubleSlab(Identifier slabType,
BlockTrait<?> typeTrait) |
BlockBehaviorRail(Identifier type,
BlockTrait<RailDirection> directionTrait) |
| Modifier and Type | Class and Description |
|---|---|
class |
BooleanBlockTrait |
class |
EnumBlockTrait<E extends Enum<E>> |
class |
IntegerBlockTrait |
| Modifier and Type | Method and Description |
|---|---|
default String |
BlockTraitSerializers.TraitSerializer.getName(BlockState state,
BlockTrait<?> blockTrait) |
BlockTraitSerializers.TraitSerializer |
BlockTraitSerializers.getSerializerFor(BlockTrait<?> trait) |
void |
BlockTraitSerializers.register(BlockTrait<?> trait,
BlockTraitSerializers.TraitSerializer<?> serializer) |
void |
BlockTraitSerializers.serialize(com.nukkitx.nbt.NbtMapBuilder builder,
BlockState state,
BlockTrait<?> trait) |
void |
BlockTraitSerializers.serialize(com.nukkitx.nbt.NbtMapBuilder builder,
BlockState state,
BlockTrait<?> trait,
Comparable<?> value) |
| Modifier and Type | Method and Description |
|---|---|
String |
StoneSlabSerializer.getName(BlockState state,
BlockTrait<?> blockTrait) |
String |
DirectionSerializer.getName(BlockState state,
BlockTrait<?> blockTrait) |
String |
TriggeredSerializer.getName(BlockState state,
BlockTrait<?> blockTrait) |
String |
FluidTypeSerializer.getName(BlockState state,
BlockTrait<?> blockTrait) |
String |
PoweredSerializer.getName(BlockState state,
BlockTrait<?> blockTrait) |
String |
TreeSpeciesSerializer.getName(BlockState state,
BlockTrait<?> blockTrait) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
StandardGeneratorUtils.findTrait(@NonNull BlockState state,
@NonNull String traitName) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
StandardGeneratorUtils.parseTrait(@NonNull BlockTrait<T> trait,
@NonNull String valueText) |
Copyright © 2020. All rights reserved.