| Package | Description |
|---|---|
| org.cloudburstmc.server.block | |
| org.cloudburstmc.server.block.behavior | |
| org.cloudburstmc.server.utils.data |
| Modifier and Type | Field and Description |
|---|---|
static EnumBlockTrait<RailDirection> |
BlockTraits.RAIL_DIRECTION |
static EnumBlockTrait<RailDirection> |
BlockTraits.SIMPLE_RAIL_DIRECTION |
| Modifier and Type | Field and Description |
|---|---|
protected BlockTrait<RailDirection> |
BlockBehaviorRail.directionTrait |
| Modifier and Type | Method and Description |
|---|---|
RailDirection |
BlockBehaviorRail.getOrientation(BlockState state) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
BlockBehaviorRailPowered.canPowered(Block block,
com.nukkitx.math.vector.Vector3i pos,
RailDirection direction,
int power,
boolean relative) |
protected boolean |
BlockBehaviorRailActivator.canPowered(Block block,
com.nukkitx.math.vector.Vector3i pos,
RailDirection direction,
int power,
boolean relative) |
void |
BlockBehaviorRail.setOrientation(Block block,
RailDirection o) |
| Constructor and Description |
|---|
BlockBehaviorRail(Identifier type,
BlockTrait<RailDirection> directionTrait) |
| Modifier and Type | Method and Description |
|---|---|
static RailDirection |
RailDirection.ascending(Direction face) |
static RailDirection |
RailDirection.curved(Direction f1,
Direction f2) |
static RailDirection[] |
RailDirection.simpleValues() |
static RailDirection |
RailDirection.straight(Direction face) |
static RailDirection |
RailDirection.straightOrCurved(Direction f1,
Direction f2) |
static RailDirection |
RailDirection.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RailDirection[] |
RailDirection.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2020. All rights reserved.