Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action interface {
// contains filtered or unexported methods
}
Action represents an action that may be performed by a block. Typically, these actions are sent to viewers in a world so that they can see these actions.
type Close ¶
type Close struct {
// contains filtered or unexported fields
}
Close is an action to close a block at a position, complementary to the Open action.
type ContinueCrack ¶
ContinueCrack is an action sent every so often to continue the cracking process of the block. It is only ever sent after a StartCrack action, and may have an altered break time if the player is not on the ground, submerged or is using a different item than at first.
type Open ¶
type Open struct {
// contains filtered or unexported fields
}
Open is an action to open a block at a position. It is sent for blocks such as chests.
type StartCrack ¶
StartCrack is an action to make the cracks in a block start forming, following the break time set in the action.