use of forestry.farming.logic.FarmProperties in project ForestryMC by ForestryMC.
the class FarmRegistry method registerLogic.
@Override
public IFarmProperties registerLogic(String identifier, BiFunction<IFarmProperties, Boolean, IFarmLogic> logicFactory, String... farmablesIdentifiers) {
Set<String> identifiers = new HashSet<>(Arrays.asList(farmablesIdentifiers));
identifiers.add(identifier);
IFarmProperties instance = new FarmProperties(logicFactory, identifiers);
farmInstances.put(identifier, instance);
return instance;
}
Aggregations