Add item DataComponent implements (part 2)
This commit is contained in:
14
level/component/mapid.go
Normal file
14
level/component/mapid.go
Normal file
@ -0,0 +1,14 @@
|
||||
package component
|
||||
|
||||
import pk "github.com/Tnze/go-mc/net/packet"
|
||||
|
||||
var _ DataComponent = (*MapID)(nil)
|
||||
|
||||
type MapID struct {
|
||||
pk.VarInt
|
||||
}
|
||||
|
||||
// ID implements DataComponent.
|
||||
func (MapID) ID() string {
|
||||
return "minecraft:map_id"
|
||||
}
|
Reference in New Issue
Block a user