public final class MemorizedRecipe extends java.lang.Object implements INbtWritable, INbtReadable, IStreamable
| Constructor and Description |
|---|
MemorizedRecipe(InventoryCraftingForestry craftMatrix,
java.util.List<net.minecraft.item.crafting.IRecipe> recipes) |
MemorizedRecipe(net.minecraft.nbt.NBTTagCompound nbt) |
MemorizedRecipe(PacketBufferForestry data) |
| Modifier and Type | Method and Description |
|---|---|
void |
decrementRecipe() |
net.minecraft.item.ItemStack |
getCraftingResult(net.minecraft.inventory.InventoryCrafting inventoryCrafting,
net.minecraft.world.World world) |
InventoryCraftingForestry |
getCraftMatrix() |
long |
getLastUsed() |
net.minecraft.item.ItemStack |
getOutputIcon() |
net.minecraft.item.crafting.IRecipe |
getSelectedRecipe() |
boolean |
hasRecipe(net.minecraft.item.crafting.IRecipe recipe) |
boolean |
hasRecipeConflict() |
void |
incrementRecipe() |
boolean |
isLocked() |
void |
readData(PacketBufferForestry data) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
void |
removeRecipeConflicts() |
void |
setCraftMatrix(InventoryCraftingForestry craftMatrix) |
void |
toggleLock() |
void |
updateLastUse(long lastUsed) |
void |
writeData(PacketBufferForestry data) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
public MemorizedRecipe(PacketBufferForestry data) throws java.io.IOException
java.io.IOExceptionpublic MemorizedRecipe(net.minecraft.nbt.NBTTagCompound nbt)
public MemorizedRecipe(InventoryCraftingForestry craftMatrix, java.util.List<net.minecraft.item.crafting.IRecipe> recipes)
public InventoryCraftingForestry getCraftMatrix()
public void setCraftMatrix(InventoryCraftingForestry craftMatrix)
public void incrementRecipe()
public void decrementRecipe()
public boolean hasRecipeConflict()
public void removeRecipeConflicts()
public net.minecraft.item.ItemStack getOutputIcon()
public net.minecraft.item.ItemStack getCraftingResult(net.minecraft.inventory.InventoryCrafting inventoryCrafting,
net.minecraft.world.World world)
@Nullable public net.minecraft.item.crafting.IRecipe getSelectedRecipe()
public boolean hasRecipe(@Nullable
net.minecraft.item.crafting.IRecipe recipe)
public void updateLastUse(long lastUsed)
public long getLastUsed()
public void toggleLock()
public boolean isLocked()
public final void readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
readFromNBT in interface INbtReadablepublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeToNBT in interface INbtWritablepublic void writeData(PacketBufferForestry data)
writeData in interface IStreamablepublic void readData(PacketBufferForestry data) throws java.io.IOException
readData in interface IStreamablejava.io.IOException