Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShapedChemistryRecipe ¶
type ShapedChemistryRecipe struct {
ShapedRecipe
}
ShapedChemistryRecipe is a recipe specifically made for chemistry related features, which exist only in the Education Edition. It functions the same as a normal ShapedRecipe.
func (*ShapedChemistryRecipe) Marshal ¶
func (recipe *ShapedChemistryRecipe) Marshal(r protocol.IO)
Marshal ...
type ShapedRecipe ¶
type ShapedRecipe struct { // RecipeID is a unique ID of the recipe. This ID must be unique amongst all other types of recipes too, // but its functionality is not exactly known. RecipeID string // Width is the width of the recipe's shape. Width int32 // Height is the height of the recipe's shape. Height int32 // Input is a list of items that serve as the input of the shapeless recipe. These items are the items // required to craft the output. The amount of input items must be exactly equal to Width * Height. Input []protocol.ItemDescriptorCount // Output is a list of items that are created as a result of crafting the recipe. Output []protocol.ItemStack // UUID is a UUID identifying the recipe. Since the CraftingEvent packet no longer exists, this can always be empty. UUID uuid.UUID // Block is the block name that is required to craft the output of the recipe. The block is not prefixed // with 'minecraft:', so it will look like 'crafting_table' as an example. Block string // Priority ... Priority int32 // RecipeNetworkID is a unique ID used to identify the recipe over network. Each recipe must have a unique // network ID. Recommended is to just increment a variable for each unique recipe registered. // This field must never be 0. RecipeNetworkID uint32 }
ShapedRecipe is a recipe that has a specific shape that must be used to craft the output of the recipe. Trying to craft the item in any other shape will not work. The ShapedRecipe is of the same structure as the ShapedChemistryRecipe.
Click to show internal directories.
Click to hide internal directories.