Skip to content

Commit

Permalink
Missing API files.
Browse files Browse the repository at this point in the history
Thanks for the info
  • Loading branch information
Speiger committed Sep 29, 2015
1 parent a7126e0 commit 0a0fece
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ic2/api/item/IKineticRotor.java
@@ -0,0 +1,23 @@
package ic2.api.item;

import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;

public interface IKineticRotor {
int getDiameter(ItemStack stack);

ResourceLocation getRotorRenderTexture(ItemStack stack);

float getEfficiency(ItemStack stack);

int getMinWindStrength(ItemStack stack);

int getMaxWindStrength(ItemStack stack);

boolean isAcceptedType(ItemStack stack, GearboxType type);

public static enum GearboxType {
WATER,
WIND,
}
}
19 changes: 19 additions & 0 deletions ic2/api/item/IWrenchHandler.java
@@ -0,0 +1,19 @@
package ic2.api.item;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;

public interface IWrenchHandler
{
public boolean supportsItem(ItemStack possibleWrench);

public boolean canWrench(ItemStack wrench, int x, int y, int z, EntityPlayer player);

public void useWrench(ItemStack wrench, int x, int y, int z, EntityPlayer player);

public static interface IWrenchRegistry
{
public void registerWrenchSupporter(IWrenchHandler par1);
}

}
25 changes: 25 additions & 0 deletions ic2/api/recipe/ILiquidHeatExchangerManager.java
@@ -0,0 +1,25 @@
package ic2.api.recipe;

import java.util.Map;

import net.minecraftforge.fluids.Fluid;

public interface ILiquidHeatExchangerManager extends ILiquidAcceptManager {

void addFluid(String fluidName, String fluidOutput, int huPerMB);

HeatExchangeProperty getHeatExchangeProperty(Fluid fluid);

Map<String, HeatExchangeProperty> getHeatExchangeProperties();

public static class HeatExchangeProperty {
public HeatExchangeProperty(Fluid outputFluid, int huPerMB) {
this.outputFluid = outputFluid;
this.huPerMB = huPerMB;
}

public final Fluid outputFluid;
public final int huPerMB;
}

}

0 comments on commit 0a0fece

Please sign in to comment.