portal

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivateEndPortal

func ActivateEndPortal(tx *world.Tx, framePos cube.Pos) bool

func ActivateNetherPortal

func ActivateNetherPortal(tx *world.Tx, pos cube.Pos) bool

func DeactivateEndPortal

func DeactivateEndPortal(tx *world.Tx, portalPos cube.Pos)

func DeactivateNetherPortal

func DeactivateNetherPortal(tx *world.Tx, pos cube.Pos) bool

func EndPortalRingIntact

func EndPortalRingIntact(tx *world.Tx, portalPos cube.Pos) bool

func EndSpawnPosition

func EndSpawnPosition(player bool) mgl64.Vec3

func GenerateEndSpawnPlatform

func GenerateEndSpawnPlatform(tx *world.Tx)

Types

type Nether

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

func CreateNetherPortal

func CreateNetherPortal(tx *world.Tx, pos cube.Pos) (Nether, bool)

func FindNetherPortal

func FindNetherPortal(tx *world.Tx, pos cube.Pos, radius int) (Nether, bool)

func FindOrCreateNetherPortal

func FindOrCreateNetherPortal(tx *world.Tx, pos cube.Pos, radius int) (Nether, bool)

func NetherPortalFromPos

func NetherPortalFromPos(tx *world.Tx, pos cube.Pos) (Nether, bool)

func (Nether) Activate

func (n Nether) Activate()

func (Nether) Activated

func (n Nether) Activated() bool

func (Nether) Framed

func (n Nether) Framed() bool

func (Nether) Positions

func (n Nether) Positions() []cube.Pos

func (Nether) Spawn

func (n Nether) Spawn() cube.Pos

Jump to

Keyboard shortcuts

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