-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dragonfly/server: Update for 1.21.60
- Loading branch information
1 parent
bae2538
commit 56fdee2
Showing
22 changed files
with
247 additions
and
111 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
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,37 @@ | ||
package creative | ||
|
||
// Category represents a category of items in the creative inventory which are shown as different tabs. | ||
type Category struct { | ||
category | ||
} | ||
|
||
type category uint8 | ||
|
||
// ConstructionCategory is the construction category which contains only blocks that do not fall under | ||
// any other category. | ||
func ConstructionCategory() Category { | ||
return Category{1} | ||
} | ||
|
||
// NatureCategory is the nature category which contains blocks and items that can be naturally found in the | ||
// world. | ||
func NatureCategory() Category { | ||
return Category{2} | ||
} | ||
|
||
// EquipmentCategory is the equipment category which contains tools, armour, food and any other form of | ||
// equipment. | ||
func EquipmentCategory() Category { | ||
return Category{3} | ||
} | ||
|
||
// ItemsCategory is the items category for all the miscellaneous items that do not fall under any other | ||
// category. | ||
func ItemsCategory() Category { | ||
return Category{4} | ||
} | ||
|
||
// Uint8 returns the category type as a uint8. | ||
func (s category) Uint8() uint8 { | ||
return uint8(s) | ||
} |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Oops, something went wrong.