particle

package
v0.9.11 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 5 Imported by: 15

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 bone meal usage.

func (BoneMeal) Spawn

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

Spawn ...

type DragonEggTeleport

type DragonEggTeleport struct {

	// Diff is a Pos with the values being the difference from the original position to the new position.
	Diff cube.Pos
	// 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 Dust added in v0.8.2

type Dust struct {

	// Colour is the colour of the Dust particle.
	Colour color.RGBA
	// contains filtered or unexported fields
}

Dust is a particle shown for redstone. It can have any colour specified with the Colour field. If the colour is not specified, it will default to black.

func (Dust) Spawn added in v0.8.2

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

Spawn ...

type Effect added in v0.8.0

type Effect struct {

	// Colour is the colour of the particle.
	Colour color.RGBA
	// contains filtered or unexported fields
}

Effect is a particle that shows up around an entity when it has effects on.

func (Effect) Spawn added in v0.8.0

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

Spawn ...

type EggSmash added in v0.8.1

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

EggSmash is a particle shown when an egg smashes on something.

func (EggSmash) Spawn added in v0.8.1

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

Spawn ...

type EndermanTeleport added in v0.9.0

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

EndermanTeleport is a particle that shows up when an enderman teleports.

func (EndermanTeleport) Spawn added in v0.9.0

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

Spawn ...

type EntityFlame added in v0.8.2

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

EntityFlame is a particle shown when an entity is set on fire.

func (EntityFlame) Spawn added in v0.8.2

func (EntityFlame) 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 Flame added in v0.6.0

type Flame struct {

	// Colour is the colour of the Flame particle.
	Colour color.RGBA
	// contains filtered or unexported fields
}

Flame is a particle shown around torches. It can have any colour specified with the Colour field. If the colour is not specified, it will default to the normal flame particle.

func (Flame) Spawn added in v0.6.0

func (Flame) 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 Lava added in v0.8.2

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

Lava is a particle that shows up randomly above lava.

func (Lava) Spawn added in v0.8.2

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

Spawn ...

type LavaDrip added in v0.8.2

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

LavaDrip is a particle that shows up when there is lava above a block and it looks like a dripping effect.

func (LavaDrip) Spawn added in v0.8.2

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

Spawn ...

type Note

type Note struct {

	// Instrument is the instrument of the note block.
	Instrument sound.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 cube.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 ...

type SnowballPoof added in v0.4.0

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

SnowballPoof is a particle shown when a snowball collides with something.

func (SnowballPoof) Spawn added in v0.4.0

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

Spawn ...

type Splash added in v0.5.0

type Splash struct {

	// Colour is the colour that should be splashed.
	Colour color.RGBA
	// contains filtered or unexported fields
}

Splash is a particle that shows up when a splash potion is splashed.

func (Splash) Spawn added in v0.5.0

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

Spawn ...

type WaterDrip added in v0.8.2

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

WaterDrip is a particle that shows up when there is water above a block and it looks like a dripping effect.

func (WaterDrip) Spawn added in v0.8.2

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

Spawn ...

Jump to

Keyboard shortcuts

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