action

package
v0.0.0-...-d1826b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2022 License: AGPL-3.0, MIT Imports: 1 Imported by: 0

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

type ContinueCrack struct {
	BreakTime time.Duration
	// contains filtered or unexported fields
}

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

type StartCrack struct {
	BreakTime time.Duration
	// contains filtered or unexported fields
}

StartCrack is an action to make the cracks in a block start forming, following the break time set in the action.

type StopCrack

type StopCrack struct {
	// contains filtered or unexported fields
}

StopCrack is an action to make the cracks forming in a block stop and disappear.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL