Fix #627 Make a simpler API interface for IFarmLogic and improve the farm api

This commit is contained in:
Nedelosk committed 2017-04-06 00:13:15 +02:00
1 parent 91d46d1331
commit 386f0645a5
12 files changed
+268 -85

No files matched your search

@@ -10,6 +10,8 @@ import java.util.Map;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.Multimap;
import forestry.api.core.ForestryAPI;
import net.minecraft.item.ItemStack;
public class Farmables {
@@ -17,9 +19,15 @@ public class Farmables {
* Can be used to add IFarmables to some of the vanilla farm logics.
* <p>
* Identifiers: farmArboreal farmWheat farmGourd farmInfernal farmPoales farmSucculentes farmVegetables farmShroom
* @deprecated Please use {@link IFarmRegistry#registerFarmables(String, IFarmable...)} and {@link IFarmRegistry#getFarmables(String)}.
*/
@Deprecated
public static final Multimap<String, IFarmable> farmables = HashMultimap.create();
/**
* @deprecated Please use {@link IFarmRegistry#registerFertilizer(ItemStack, int)} and {@link IFarmRegistry#getFertilizeValue(ItemStack)}.
*/
@Deprecated
public static final Map<ItemStack, Integer> fertilizers = new LinkedHashMap<>();
}