refactor package
This commit is contained in:
19
pkg/protocol/component/tooltip_display.go
Normal file
19
pkg/protocol/component/tooltip_display.go
Normal file
@ -0,0 +1,19 @@
|
||||
package component
|
||||
|
||||
import (
|
||||
"git.konjactw.dev/patyhank/minego/pkg/protocol/slot"
|
||||
)
|
||||
|
||||
//codec:gen
|
||||
type TooltipDisplay struct {
|
||||
HideTooltip bool
|
||||
HiddenComponents []int32 `mc:"VarInt"`
|
||||
}
|
||||
|
||||
func (*TooltipDisplay) Type() slot.ComponentID {
|
||||
return 15
|
||||
}
|
||||
|
||||
func (*TooltipDisplay) ID() string {
|
||||
return "minecraft:tooltip_display"
|
||||
}
|
Reference in New Issue
Block a user