Files
minego/pkg/protocol/slot/hashed_item.go
2025-08-22 05:14:59 +08:00

21 lines
395 B
Go

package slot
//codec:gen
type AddedHashedComponent struct {
Type int32 `mc:"VarInt"`
DataHash int32
}
//codec:gen
type HashedSlot struct {
HasItem bool
//opt:optional:HasItem
ItemID int32 `mc:"VarInt"`
//opt:optional:HasItem
ItemCount int32 `mc:"VarInt"`
//opt:optional:HasItem
AddComponents AddedHashedComponent
//opt:optional:HasItem
RemovedComponents []int32 `mc:"VarInt"`
}