package
Version:
v0.27.1
Opens a new window with list of versions in this module.
Published: Mar 14, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
Package title contains title packets.
New creates a version and type dependent title packet.
Action is the title action.
const (
SetTitle Action = iota
SetSubtitle
SetActionBar
SetTimes
Hide
Reset
)
Title packets actions.
(Numbered after the 1.11+ increment by 1)
ProtocolAction returns the correct action id for the protocol version
since 1.11+ shifted the action enum by 1 to handle the action bar.
type Actionbar struct{ Component string }
Builder is a Title packet builder.
type Clear struct {
Action Action
}
type Legacy struct {
Action Action
Component string
FadeIn, Stay, FadeOut int
}
type Subtitle struct{ Component string }
type Text struct{ Component string }
type Times struct{ FadeIn, Stay, FadeOut int }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.