-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
banchen19
committed
Aug 9, 2024
1 parent
822c9ab
commit 7aebbac
Showing
6 changed files
with
66 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use bedrockrs_proto_derive::ProtoCodec; | ||
|
||
use crate::types::container_type::ContainerType; | ||
|
||
#[derive(ProtoCodec, Debug, Clone)] | ||
pub struct ContainerClosePacket { | ||
container_id: u8, | ||
container_type: ContainerType, | ||
server_initiated_close: bool, | ||
} |
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,46 @@ | ||
use bedrockrs_core::int::BE; | ||
use bedrockrs_proto_derive::ProtoCodec; | ||
|
||
#[derive(ProtoCodec, Debug, Copy, Clone, Eq, PartialEq)] | ||
#[enum_repr(BE::<i32>)] | ||
pub enum ContainerType { | ||
NONE = -9, | ||
INVENTORY = -1, | ||
CONTAINER = 0, | ||
WORKBENCH = 1, | ||
FURNACE = 2, | ||
ENCHANTMENT = 3, | ||
BREWING_STAND = 4, | ||
ANVIL = 5, | ||
DISPENSER = 6, | ||
DROPPER = 7, | ||
HOPPER = 8, | ||
CAULDRON = 9, | ||
MINECART_CHEST = 10, | ||
MINECART_HOPPER = 11, | ||
HORSE = 12, | ||
BEACON = 13, | ||
STRUCTURE_EDITOR = 14, | ||
TRADE = 15, | ||
COMMAND_BLOCK = 16, | ||
JUKEBOX = 17, | ||
ARMOR = 18, | ||
HAND = 19, | ||
COMPOUND_CREATOR = 20, | ||
ELEMENT_CONSTRUCTOR = 21, | ||
MATERIAL_REDUCER = 22, | ||
LAB_TABLE = 23, | ||
LOOM = 24, | ||
LECTERN = 25, | ||
GRINDSTONE = 26, | ||
BLAST_FURNACE = 27, | ||
SMOKER = 28, | ||
STONECUTTER = 29, | ||
CARTOGRAPHY = 30, | ||
HUD = 31, | ||
JIGSAW_EDITOR = 32, | ||
SMITHING_TABLE = 33, | ||
CHEST_BOAT = 34, | ||
DECORATED_POT = 35, | ||
CRAFTER = 36, | ||
} |
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