particle

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockBreak

type BlockBreak struct {

	// Block is the block of which particles should be shown. The particles will change depending on what
	// block is held.
	Block world.Block
	// contains filtered or unexported fields
}

BlockBreak is a particle sent when a block is broken. It represents a bunch of particles that are textured like the block that the particle holds.

func (BlockBreak) Spawn

func (BlockBreak) Spawn(*world.World, mgl64.Vec3)

Spawn ...

type BlockForceField

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

BlockForceField is a particle that shows up as a block that turns invisible from an opaque black colour.

func (BlockForceField) Spawn

func (BlockForceField) Spawn(*world.World, mgl64.Vec3)

Spawn ...

type Bonemeal

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

Bonemeal is a particle that shows up on bonemeal usage.

func (Bonemeal) Spawn

func (Bonemeal) Spawn(*world.World, mgl64.Vec3)

Spawn ...

type DragonEggTeleport

type DragonEggTeleport struct {

	// Diff is a BlockPos with the values being the difference from the original position to the new position.
	Diff world.BlockPos
	// contains filtered or unexported fields
}

DragonEggTeleport is a particle that shows up when a dragon egg teleports.

func (DragonEggTeleport) Spawn

func (DragonEggTeleport) Spawn(*world.World, mgl64.Vec3)

Spawn ...

type Evaporate

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

Evaporate is a particle that shows up when a water block evaporates

func (Evaporate) Spawn

func (Evaporate) Spawn(*world.World, mgl64.Vec3)

Spawn ...

type HugeExplosion

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

HugeExplosion is a particle shown when TNT or a creeper explodes.

func (HugeExplosion) Spawn

func (HugeExplosion) Spawn(*world.World, mgl64.Vec3)

Spawn ...

type Note

type Note struct {

	// Instrument is the instrument of the note block.
	Instrument instrument.Instrument
	// Pitch is the pitch of the note.
	Pitch int
	// contains filtered or unexported fields
}

Note is a particle that shows up on note block interactions.

func (Note) Spawn

func (Note) Spawn(*world.World, mgl64.Vec3)

Spawn ...

type PunchBlock

type PunchBlock struct {

	// Block is the block of which particles should be shown. The particles will change depending on what
	// block is punched.
	Block world.Block
	// Face is the face of the block that was punched. It is here that the particles will be shown.
	Face world.Face
	// contains filtered or unexported fields
}

PunchBlock is a particle shown when a player is punching a block. It shows particles of a specific block type at a particular face of a block.

func (PunchBlock) Spawn

func (PunchBlock) Spawn(*world.World, mgl64.Vec3)

Spawn ...

Jump to

Keyboard shortcuts

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