Package | Description |
---|---|
net.tridentsdk.base |
This package contains basic elements in Minecraft, such as blocks, orientation, directions, instruments, and sounds
|
net.tridentsdk.event.block |
Block-based events, called when a block is affected in an event
|
net.tridentsdk.event.player |
Called when a player-based event occurs, such as an event that involves a player
|
net.tridentsdk.meta.block |
Block metadata components
|
net.tridentsdk.server.data.block |
Contains block meta implementations
|
Modifier and Type | Method and Description |
---|---|
static BlockDirection |
BlockDirection.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlockDirection[] |
BlockDirection.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
BlockDirection |
BlockBreakEvent.blockFace()
Returns the block face clicked to break this block
|
BlockDirection |
BlockPistonEvent.direction()
Returns the direction that the piston is facing, for example if the piston head face of a block is on the north
end of a block, then the Direction that this event returns will be north, does not change depending on whether
this piston is extending or retracting, so a block may actually be moving south if this is returns north
|
BlockDirection |
BlockPlaceEvent.faceClicked()
Gets the block face of the block that was clicked on to place this block
|
Constructor and Description |
---|
BlockBreakEvent(Player player,
Block block,
BlockDirection blockFace,
Item itemInHand) |
BlockPistonEvent(Block block,
BlockDirection direction,
boolean retract,
Block influenced) |
BlockPlaceEvent(Player player,
Block block,
Block blockClicked,
BlockDirection faceClicked) |
PistonExtendEvent(Block block,
BlockDirection direction,
List<Block> influenced) |
PistonRetractEvent(Block block,
BlockDirection direction,
Block influenced) |
Modifier and Type | Method and Description |
---|---|
BlockDirection |
PlayerDigEvent.face() |
Constructor and Description |
---|
PlayerBucketEmptyEvent(Player player,
Block block,
Block blockClicked,
BlockDirection faceClicked,
Item blockInHand) |
PlayerBucketFillEvent(Player player,
Block block,
BlockDirection blockFace,
Item itemInHand) |
PlayerDigEvent(Player player,
BlockDirection face,
short status) |
Modifier and Type | Method and Description |
---|---|
BlockDirection |
DirectionMeta.direction()
Obtains the facing direction of this block
|
Modifier and Type | Method and Description |
---|---|
void |
DirectionMeta.setDirection(BlockDirection direction)
Sets the facing direction of the block
|
Modifier and Type | Method and Description |
---|---|
BlockDirection |
DirectionMetaImpl.direction() |
Modifier and Type | Method and Description |
---|---|
void |
DirectionMetaImpl.setDirection(BlockDirection direction) |
Copyright © 2016. All rights reserved.