-
Notifications
You must be signed in to change notification settings - Fork 43
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
1 parent
2ff5a83
commit 4a59780
Showing
12 changed files
with
136 additions
and
9 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,14 @@ | ||
use crate::inventory::Inventory; | ||
use ferrumc_macros::{Inventory, inventory_type}; | ||
|
||
#[derive(Inventory, Debug)] | ||
#[inventory_type(value = Anvil)] | ||
pub struct EnchantingInventory { | ||
inventory: Inventory, | ||
#[slot(id = 0, default_value = 0)] | ||
pub first: i32, | ||
#[slot(id = 1, default_value = 0)] | ||
pub second: i32, | ||
#[slot(id = 2, default_value = 0)] | ||
pub result: i32, | ||
} |
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,14 @@ | ||
use crate::inventory::Inventory; | ||
use ferrumc_macros::{Inventory, inventory_type}; | ||
|
||
#[derive(Inventory, Debug)] | ||
#[inventory_type(value = Cartography)] | ||
pub struct EnchantingInventory { | ||
inventory: Inventory, | ||
#[slot(id = 0, default_value = 0)] | ||
pub map: i32, | ||
#[slot(id = 1, default_value = 0)] | ||
pub paper: i32, | ||
#[slot(id = 2, default_value = 0)] | ||
pub output: i32, | ||
} |
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,38 @@ | ||
use crate::inventory::Inventory; | ||
use ferrumc_macros::{Inventory, inventory_type}; | ||
|
||
#[derive(Inventory, Debug)] | ||
#[inventory_type(value = Furnace)] | ||
pub struct FurnaceInventory { | ||
inventory: Inventory, | ||
#[slot(id = 0, default_value = 0)] | ||
pub ingredient: i32, | ||
#[slot(id = 1, default_value = 0)] | ||
pub fuel: i32, | ||
#[slot(id = 2, default_value = 0)] | ||
pub output: i32, | ||
} | ||
|
||
#[derive(Inventory, Debug)] | ||
#[inventory_type(value = BlastFurnace)] | ||
pub struct BlastFurnaceInventory { | ||
inventory: Inventory, | ||
#[slot(id = 0, default_value = 0)] | ||
pub ingredient: i32, | ||
#[slot(id = 1, default_value = 0)] | ||
pub fuel: i32, | ||
#[slot(id = 2, default_value = 0)] | ||
pub output: i32, | ||
} | ||
|
||
#[derive(Inventory, Debug)] | ||
#[inventory_type(value = Smoker)] | ||
pub struct SmokerInventory { | ||
inventory: Inventory, | ||
#[slot(id = 0, default_value = 0)] | ||
pub ingredient: i32, | ||
#[slot(id = 1, default_value = 0)] | ||
pub fuel: i32, | ||
#[slot(id = 2, default_value = 0)] | ||
pub output: i32, | ||
} |
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,14 @@ | ||
use crate::inventory::Inventory; | ||
use ferrumc_macros::{Inventory, inventory_type}; | ||
|
||
#[derive(Inventory, Debug)] | ||
#[inventory_type(value = Grindstone)] | ||
pub struct GrindstoneInventory { | ||
inventory: Inventory, | ||
#[slot(id = 0, default_value = 0)] | ||
pub first: i32, | ||
#[slot(id = 1, default_value = 0)] | ||
pub second: i32, | ||
#[slot(id = 2, default_value = 0)] | ||
pub result: i32, | ||
} |
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,16 @@ | ||
use crate::inventory::Inventory; | ||
use ferrumc_macros::{Inventory, inventory_type}; | ||
|
||
#[derive(Inventory, Debug)] | ||
#[inventory_type(value = Loom)] | ||
pub struct LoomInventory { | ||
inventory: Inventory, | ||
#[slot(id = 0, default_value = 0)] | ||
pub banner: i32, | ||
#[slot(id = 1, default_value = 0)] | ||
pub dye: i32, | ||
#[slot(id = 2, default_value = 0)] | ||
pub pattern: i32, | ||
#[slot(id = 3, default_value = 0)] | ||
pub result: i32, | ||
} |
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
mod anvil; | ||
pub mod beacon; | ||
mod cartography; | ||
pub mod enchanting; | ||
mod furnace; | ||
mod grindstone; | ||
mod loom; | ||
pub mod player; | ||
mod smithing_table; | ||
mod stonecutter; |
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,16 @@ | ||
use crate::inventory::Inventory; | ||
use ferrumc_macros::{Inventory, inventory_type}; | ||
|
||
#[derive(Inventory, Debug)] | ||
#[inventory_type(value = SmithingTable)] | ||
pub struct SmithingTableInventory { | ||
inventory: Inventory, | ||
#[slot(id = 0, default_value = 0)] | ||
pub template: i32, | ||
#[slot(id = 1, default_value = 0)] | ||
pub base: i32, | ||
#[slot(id = 2, default_value = 0)] | ||
pub additional: i32, | ||
#[slot(id = 3, default_value = 0)] | ||
pub result: i32, | ||
} |
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,12 @@ | ||
use crate::inventory::Inventory; | ||
use ferrumc_macros::{Inventory, inventory_type}; | ||
|
||
#[derive(Inventory, Debug)] | ||
#[inventory_type(value = Stonecutter)] | ||
pub struct StoneCutterInventory { | ||
inventory: Inventory, | ||
#[slot(id = 0, default_value = 0)] | ||
pub input: i32, | ||
#[slot(id = 1, default_value = 0)] | ||
pub result: i32, | ||
} |