public class PlayerRecipe
extends java.lang.Object
implements net.minecraft.item.crafting.IRecipe
| Constructor and Description |
|---|
PlayerRecipe(java.lang.String[] usernames,
net.minecraft.item.crafting.IRecipe recipe)
Constructs a new PlayerRecipe.
|
PlayerRecipe(java.lang.String username,
net.minecraft.item.crafting.IRecipe recipe)
Constructs a new PlayerRecipe.
|
PlayerRecipe(java.util.UUID[] playerIDs,
net.minecraft.item.crafting.IRecipe recipe)
Constructs a new PlayerRecipe.
|
PlayerRecipe(java.util.UUID playerID,
net.minecraft.item.crafting.IRecipe recipe)
Constructs a new PlayerRecipe.
|
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.item.ItemStack |
getCraftingResult(net.minecraft.inventory.InventoryCrafting crafting) |
net.minecraft.item.ItemStack |
getRecipeOutput() |
int |
getRecipeSize() |
boolean |
matches(net.minecraft.inventory.InventoryCrafting crafting,
net.minecraft.world.World world) |
public PlayerRecipe(java.lang.String username,
net.minecraft.item.crafting.IRecipe recipe)
username: - The username of the player that is allowed to craft this recipe.recipe: - The Recipe that is crafted by this recipe.public PlayerRecipe(java.lang.String[] usernames,
net.minecraft.item.crafting.IRecipe recipe)
usernames: - An array of usernames which represent the players allowed to craft
this recipe.recipe: - The Recipe that is crafted by this recipe.public PlayerRecipe(java.util.UUID playerID,
net.minecraft.item.crafting.IRecipe recipe)
playerID: - The UUID of the player allowed to craft this recipe.recipe: - The Recipe that is crafted by this recipe.public PlayerRecipe(java.util.UUID[] playerIDs,
net.minecraft.item.crafting.IRecipe recipe)
playerIDs: - An array of UUID which represent the players allowed to craft this
recipe.recipe: - The Recipe that is crafted by this recipe.public boolean matches(net.minecraft.inventory.InventoryCrafting crafting,
net.minecraft.world.World world)
matches in interface net.minecraft.item.crafting.IRecipepublic net.minecraft.item.ItemStack getCraftingResult(net.minecraft.inventory.InventoryCrafting crafting)
getCraftingResult in interface net.minecraft.item.crafting.IRecipepublic int getRecipeSize()
getRecipeSize in interface net.minecraft.item.crafting.IRecipepublic net.minecraft.item.ItemStack getRecipeOutput()
getRecipeOutput in interface net.minecraft.item.crafting.IRecipe