Add support for dimension ranges and network hashes
This commit is contained in:
18
legacyver/legacypacket/dimension_data.go
Normal file
18
legacyver/legacypacket/dimension_data.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package legacypacket
|
||||
|
||||
import (
|
||||
"github.com/sandertv/gophertunnel/minecraft/protocol"
|
||||
"github.com/sandertv/gophertunnel/minecraft/protocol/packet"
|
||||
)
|
||||
|
||||
type DimensionData struct {
|
||||
Definitions []protocol.DimensionDefinition
|
||||
}
|
||||
|
||||
func (*DimensionData) ID() uint32 {
|
||||
return packet.IDDimensionData
|
||||
}
|
||||
|
||||
func (pk *DimensionData) Marshal(io protocol.IO) {
|
||||
protocol.Slice(io, &pk.Definitions)
|
||||
}
|
||||
Reference in New Issue
Block a user