Add Inoculator JEI recipes

This commit is contained in:
mezz committed 2017-01-03 03:16:55 -08:00
1 parent 125cd54b66
commit 41e847b944
26 files changed
+366 -57

No files matched your search

@@ -74,7 +74,13 @@ class BeeBreedingSystem extends BreedingSystem {
@Override
public boolean isDNAManipulable(final ItemStack member) {
return ((IBeeRoot) this.getSpeciesRoot()).getType(member) == EnumBeeType.LARVAE;
ISpeciesType type = this.getSpeciesRoot().getType(member);
return isDNAManipulable(type);
}
@Override
public boolean isDNAManipulable(ISpeciesType type) {
return type == EnumBeeType.LARVAE;
}
@Override
@@ -450,6 +450,8 @@ public abstract class BreedingSystem implements IItemStackRepresentitive {
public abstract boolean isDNAManipulable(final ItemStack p0);
public abstract boolean isDNAManipulable(final ISpeciesType type);
public IIndividual getConversion(final ItemStack stack) {
return null;
}
@@ -26,6 +26,7 @@ import net.minecraft.world.World;
import net.minecraftforge.event.world.WorldEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import javax.annotation.Nullable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
@@ -90,6 +91,7 @@ public class ManagerGenetics extends ManagerBase {
return (IFlowerRoot) AlleleManager.alleleRegistry.getSpeciesRoot("rootFlowers");
}
@Nullable
public BreedingSystem getSystem(final String string) {
for (final BreedingSystem system : this.BREEDING_SYSTEMS.values()) {
if (system.getIdent().equals(string)) {
@@ -99,6 +101,7 @@ public class ManagerGenetics extends ManagerBase {
return null;
}
@Nullable
public BreedingSystem getSystem(final ISpeciesRoot root) {
return this.getSystem(root.getUID());
}
@@ -79,7 +79,13 @@ class MothBreedingSystem extends BreedingSystem {
@Override
public boolean isDNAManipulable(final ItemStack member) {
return ((IButterflyRoot) this.getSpeciesRoot()).getType(member) == EnumFlutterType.SERUM;
ISpeciesType type = this.getSpeciesRoot().getType(member);
return isDNAManipulable(type);
}
@Override
public boolean isDNAManipulable(ISpeciesType type) {
return type == EnumFlutterType.SERUM;
}
@Override
@@ -231,7 +231,13 @@ public class TreeBreedingSystem extends BreedingSystem {
@Override
public boolean isDNAManipulable(final ItemStack member) {
return ((ITreeRoot) this.getSpeciesRoot()).getType(member) == EnumGermlingType.POLLEN;
ISpeciesType type = this.getSpeciesRoot().getType(member);
return isDNAManipulable(type);
}
@Override
public boolean isDNAManipulable(ISpeciesType type) {
return type == EnumGermlingType.POLLEN;
}
@Override
@@ -6,10 +6,10 @@ public class ComponentProcessSetCost extends ComponentProcess {
private int processLength;
private int processEnergy;
public ComponentProcessSetCost(final IMachine machine, final int rfCost, final int timePeriod) {
public ComponentProcessSetCost(final IMachine machine, final int processEnergy, final int processLength) {
super(machine);
this.processLength = timePeriod;
this.processEnergy = rfCost;
this.processLength = processLength;
this.processEnergy = processEnergy;
}
@Override
@@ -0,0 +1,13 @@
package binnie.core.util;
import javax.annotation.Nonnull;
import javax.annotation.meta.TypeQualifierDefault;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Nonnull
@TypeQualifierDefault(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface FieldsAreNonnullByDefault {
}