Add item DataComponent implements (part 4)
This commit is contained in:
@ -1,30 +1,30 @@
|
||||
package component
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
||||
pk "github.com/Tnze/go-mc/net/packet"
|
||||
)
|
||||
|
||||
var _ DataComponent = (*PotionContents)(nil)
|
||||
|
||||
type PotionContents struct {
|
||||
PotionID pk.Option[pk.VarInt, *pk.VarInt]
|
||||
CustomColor pk.Option[pk.Int, *pk.Int]
|
||||
PotionEffects []any
|
||||
}
|
||||
|
||||
// ID implements DataComponent.
|
||||
func (PotionContents) ID() string {
|
||||
return "minecraft:potion_contents"
|
||||
}
|
||||
|
||||
// ReadFrom implements DataComponent.
|
||||
func (p *PotionContents) ReadFrom(r io.Reader) (n int64, err error) {
|
||||
panic("unimplemented")
|
||||
}
|
||||
|
||||
// WriteTo implements DataComponent.
|
||||
func (p *PotionContents) WriteTo(w io.Writer) (n int64, err error) {
|
||||
panic("unimplemented")
|
||||
}
|
||||
package component
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
||||
pk "github.com/Tnze/go-mc/net/packet"
|
||||
)
|
||||
|
||||
var _ DataComponent = (*PotionContents)(nil)
|
||||
|
||||
type PotionContents struct {
|
||||
PotionID pk.Option[pk.VarInt, *pk.VarInt]
|
||||
CustomColor pk.Option[pk.Int, *pk.Int]
|
||||
PotionEffects []any
|
||||
}
|
||||
|
||||
// ID implements DataComponent.
|
||||
func (PotionContents) ID() string {
|
||||
return "minecraft:potion_contents"
|
||||
}
|
||||
|
||||
// ReadFrom implements DataComponent.
|
||||
func (p *PotionContents) ReadFrom(r io.Reader) (n int64, err error) {
|
||||
panic("unimplemented")
|
||||
}
|
||||
|
||||
// WriteTo implements DataComponent.
|
||||
func (p *PotionContents) WriteTo(w io.Writer) (n int64, err error) {
|
||||
panic("unimplemented")
|
||||
}
|
||||
|
Reference in New Issue
Block a user