-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minecraft/protocol: Update to support 1.21.0
- Loading branch information
1 parent
3c4144b
commit 082917e
Showing
14 changed files
with
282 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package packet | ||
|
||
import ( | ||
"github.com/sandertv/gophertunnel/minecraft/protocol" | ||
) | ||
|
||
// AwardAchievement is sent by the server to award an achievement to a player. | ||
type AwardAchievement struct { | ||
// AchievementID is the ID of the achievement that should be awarded to the player. The values for these | ||
// IDs are currently unknown. | ||
AchievementID int32 | ||
} | ||
|
||
// ID ... | ||
func (*AwardAchievement) ID() uint32 { | ||
return IDAwardAchievement | ||
} | ||
|
||
func (pk *AwardAchievement) Marshal(io protocol.IO) { | ||
io.Int32(&pk.AchievementID) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,4 +209,5 @@ const ( | |
IDPlayerToggleCrafterSlotRequest | ||
IDSetPlayerInventoryOptions | ||
IDSetHud | ||
IDAwardAchievement | ||
) |
Oops, something went wrong.