public class FarmFertilizerManager extends java.lang.Object implements INbtWritable, INbtReadable, IStreamable
| Constructor and Description |
|---|
FarmFertilizerManager() |
| Modifier and Type | Method and Description |
|---|---|
int |
getStoredFertilizerScaled(IFarmInventoryInternal inventory,
int scale) |
boolean |
hasFertilizer(IFarmInventoryInternal inventory,
int amount) |
boolean |
maintainFertilizer(IFarmInventoryInternal inventory) |
void |
readData(PacketBufferForestry data) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound data) |
void |
removeFertilizer(IFarmInventoryInternal inventory,
int amount) |
void |
writeData(PacketBufferForestry data) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound data) |
public boolean hasFertilizer(IFarmInventoryInternal inventory, int amount)
public void removeFertilizer(IFarmInventoryInternal inventory, int amount)
public boolean maintainFertilizer(IFarmInventoryInternal inventory)
public void readFromNBT(net.minecraft.nbt.NBTTagCompound data)
readFromNBT in interface INbtReadablepublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound data)
writeToNBT in interface INbtWritablepublic int getStoredFertilizerScaled(IFarmInventoryInternal inventory, int scale)
public void writeData(PacketBufferForestry data)
writeData in interface IStreamablepublic void readData(PacketBufferForestry data)
readData in interface IStreamable