public class RecipeMemory extends java.lang.Object implements INbtWritable, IStreamable
| Constructor and Description |
|---|
RecipeMemory() |
RecipeMemory(net.minecraft.nbt.NBTTagCompound nbt) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLastUpdate() |
MemorizedRecipe |
getRecipe(int recipeIndex) |
net.minecraft.item.ItemStack |
getRecipeDisplayOutput(int recipeIndex) |
boolean |
isLocked(int recipeIndex) |
void |
memorizeRecipe(long worldTime,
MemorizedRecipe recipe) |
void |
readData(PacketBufferForestry data) |
void |
toggleLock(long worldTime,
int recipeIndex) |
void |
writeData(PacketBufferForestry data) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
public RecipeMemory()
public RecipeMemory(net.minecraft.nbt.NBTTagCompound nbt)
public long getLastUpdate()
public void memorizeRecipe(long worldTime,
MemorizedRecipe recipe)
@Nullable public MemorizedRecipe getRecipe(int recipeIndex)
public net.minecraft.item.ItemStack getRecipeDisplayOutput(int recipeIndex)
public boolean isLocked(int recipeIndex)
public void toggleLock(long worldTime,
int recipeIndex)
public 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