1.21.6 Clientbound PlayState Packets
This commit is contained in:
@ -1 +1,31 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"git.konjactw.dev/patyhank/minego/codec/slot"
|
||||
)
|
||||
|
||||
//codec:gen
|
||||
type TradeOption struct {
|
||||
Input slot.TradeSlot
|
||||
Output slot.Slot
|
||||
HasSecondInput bool
|
||||
//opt:optional:HasSecondInput
|
||||
SecondInput slot.TradeSlot
|
||||
TradeDisabled bool
|
||||
TradeUses int32
|
||||
MaxTradeUses int32
|
||||
Experience int32
|
||||
SpecialPrice int32
|
||||
PriceMultiplier float32
|
||||
Demand int32
|
||||
}
|
||||
|
||||
//codec:gen
|
||||
type MerchantOffers struct {
|
||||
WindowID int32 `mc:"VarInt"`
|
||||
Offers []TradeOption
|
||||
Level int32 `mc:"VarInt"`
|
||||
Experience int32 `mc:"VarInt"`
|
||||
IsRegular bool
|
||||
CanRestock bool
|
||||
}
|
||||
|
Reference in New Issue
Block a user