action

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 0 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 an entity. Typically, these actions are sent to viewers in a world so that they can see these actions.

type Death

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

Death makes an entity display the death animation. After this animation, the entity disappears from viewers watching it.

type Eat

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

Eat makes an entity display the eating particles at its mouth to viewers with the item in its hand being eaten.

type Hurt

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

Hurt makes an entity display the animation for being hurt. The entity will be shown as red for a short duration.

type PickedUp

type PickedUp struct {
	// Collector is the entity that collected the item.
	Collector interface{}
	// contains filtered or unexported fields
}

PickedUp makes an item get picked up by a collector. After this animation, the item disappears from viewers watching it.

type SwingArm

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

SwingArm makes an entity or player swing its arm.

Jump to

Keyboard shortcuts

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