mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 04:22:32 +00:00
Add universal portable alyzer and remove flutter-,tree- and beealyzer
This commit is contained in:
1 parent
23b5126d51
commit
7ae7e62c0c
42 files changed
+788
-751
No files matched your search
@@ -0,0 +1,37 @@
|
||||
package forestry.api.genetics;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
public interface IAlyzer<II extends IIndividual, T extends ISpeciesType, G extends IGuiAlyzer, I extends IInventory> {
|
||||
|
||||
ISpeciesRoot getSpeciesRoot();
|
||||
|
||||
Map<String, ItemStack> getIconStacks();
|
||||
|
||||
ResourceLocation getGuiTexture();
|
||||
|
||||
boolean canSlotAccept(I inventory, int slotIndex, ItemStack itemStack);
|
||||
|
||||
void onSlotClick(I inventory, int slotIndex, EntityPlayer player);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void drawAnalyticsPage1(G gui, II individual, T type);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void drawAnalyticsPage2(G gui, II individual, T type);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void drawAnalyticsPage3(G gui, II individual, T type);
|
||||
|
||||
boolean isAlyzingFuel(ItemStack itemstack);
|
||||
|
||||
T getDefaultType();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package forestry.api.genetics;
|
||||
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
public interface IGuiAlyzer {
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
int getColorCoding(boolean dominant);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void drawLine(String text, int x, IIndividual individual, IChromosomeType chromosome, boolean inactive);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void drawSplitLine(String text, int x, int maxWidth, IIndividual individual, IChromosomeType chromosome, boolean inactive);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void drawRow(String text0, String text1, String text2, IIndividual individual, IChromosomeType chromosome);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void drawChromosomeRow(String chromosomeName, IIndividual individual, IChromosomeType chromosome);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void drawSpeciesRow(String text0, IIndividual individual, IChromosomeType chromosome, String customPrimaryName, String customSecondaryName);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void drawAnalyticsOverview();
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void drawAnalyticsPageClassification(IIndividual individual);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void drawAnalyticsPageMutations(IIndividual individual);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void drawMutationInfo(IMutation combination, IAllele species, int x);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void drawToleranceInfo(IAlleleTolerance toleranceAllele, int x);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void drawFertilityInfo(int fertility, int x, int textColor, int texOffset);
|
||||
|
||||
}
|
||||
@@ -178,4 +178,6 @@ public interface ISpeciesRoot {
|
||||
* @return {@link IChromosomeType} which is the "key" for this species class, usually the species chromosome.
|
||||
*/
|
||||
IChromosomeType getKaryotypeKey();
|
||||
|
||||
IAlyzer getAlyzer();
|
||||
}
|
||||
Reference in new issue
Block a user