internal

package
v0.0.0-...-1aae147 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iterator

type Iterator[T any] struct {
	// contains filtered or unexported fields
}

func NewIterator

func NewIterator[T any](values []T) *Iterator[T]

func (*Iterator[T]) HasNext

func (i *Iterator[T]) HasNext() bool

func (*Iterator[T]) HasPrevious

func (i *Iterator[T]) HasPrevious() bool

func (*Iterator[T]) Next

func (i *Iterator[T]) Next() T

func (*Iterator[T]) Previous

func (i *Iterator[T]) Previous() T

type StateHash

type StateHash struct {
	Name, Properties string
}

StateHash is a struct that may be used as a map key for block states. It contains the name of the block state and an encoded version of the properties.

func HashState

func HashState(state blockupgrader.BlockState) StateHash

HashState produces a hash for the block properties held by the blockState.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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