close #182
This commit is contained in:
@ -390,6 +390,10 @@ type BlockEntity struct {
|
|||||||
Data nbt.RawMessage
|
Data nbt.RawMessage
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (b BlockEntity) UnpackXZ() (X, Z int) {
|
||||||
|
return int((uint8(b.XZ) >> 4) & 0xF), int(uint8(b.XZ) & 0xF)
|
||||||
|
}
|
||||||
|
|
||||||
func (b BlockEntity) WriteTo(w io.Writer) (n int64, err error) {
|
func (b BlockEntity) WriteTo(w io.Writer) (n int64, err error) {
|
||||||
return pk.Tuple{
|
return pk.Tuple{
|
||||||
pk.Byte(b.XZ),
|
pk.Byte(b.XZ),
|
||||||
|
Reference in New Issue
Block a user