Test with stuff + Forestry potential support
This commit is contained in:
parent
5b05cf651b
commit
bd26e441cb
174 changed files with 5602 additions and 0 deletions
8
BM_src/forestry/api/circuits/ChipsetManager.java
Normal file
8
BM_src/forestry/api/circuits/ChipsetManager.java
Normal file
|
@ -0,0 +1,8 @@
|
|||
package forestry.api.circuits;
|
||||
|
||||
public class ChipsetManager {
|
||||
|
||||
public static ISolderManager solderManager;
|
||||
public static ICircuitRegistry circuitRegistry;
|
||||
|
||||
}
|
27
BM_src/forestry/api/circuits/ICircuit.java
Normal file
27
BM_src/forestry/api/circuits/ICircuit.java
Normal file
|
@ -0,0 +1,27 @@
|
|||
package forestry.api.circuits;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public interface ICircuit {
|
||||
String getUID();
|
||||
|
||||
boolean requiresDiscovery();
|
||||
|
||||
int getLimit();
|
||||
|
||||
String getName();
|
||||
|
||||
boolean isCircuitable(TileEntity tile);
|
||||
|
||||
void onInsertion(int slot, TileEntity tile);
|
||||
|
||||
void onLoad(int slot, TileEntity tile);
|
||||
|
||||
void onRemoval(int slot, TileEntity tile);
|
||||
|
||||
void onTick(int slot, TileEntity tile);
|
||||
|
||||
void addTooltip(List<String> list);
|
||||
}
|
26
BM_src/forestry/api/circuits/ICircuitBoard.java
Normal file
26
BM_src/forestry/api/circuits/ICircuitBoard.java
Normal file
|
@ -0,0 +1,26 @@
|
|||
package forestry.api.circuits;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import forestry.api.core.INBTTagable;
|
||||
|
||||
public interface ICircuitBoard extends INBTTagable {
|
||||
|
||||
int getPrimaryColor();
|
||||
|
||||
int getSecondaryColor();
|
||||
|
||||
void addTooltip(List<String> list);
|
||||
|
||||
void onInsertion(TileEntity tile);
|
||||
|
||||
void onLoad(TileEntity tile);
|
||||
|
||||
void onRemoval(TileEntity tile);
|
||||
|
||||
void onTick(TileEntity tile);
|
||||
|
||||
ICircuit[] getCircuits();
|
||||
|
||||
}
|
11
BM_src/forestry/api/circuits/ICircuitLayout.java
Normal file
11
BM_src/forestry/api/circuits/ICircuitLayout.java
Normal file
|
@ -0,0 +1,11 @@
|
|||
package forestry.api.circuits;
|
||||
|
||||
public interface ICircuitLayout {
|
||||
|
||||
String getUID();
|
||||
|
||||
String getName();
|
||||
|
||||
String getUsage();
|
||||
|
||||
}
|
5
BM_src/forestry/api/circuits/ICircuitLibrary.java
Normal file
5
BM_src/forestry/api/circuits/ICircuitLibrary.java
Normal file
|
@ -0,0 +1,5 @@
|
|||
package forestry.api.circuits;
|
||||
|
||||
public interface ICircuitLibrary {
|
||||
|
||||
}
|
37
BM_src/forestry/api/circuits/ICircuitRegistry.java
Normal file
37
BM_src/forestry/api/circuits/ICircuitRegistry.java
Normal file
|
@ -0,0 +1,37 @@
|
|||
package forestry.api.circuits;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public interface ICircuitRegistry {
|
||||
|
||||
/* CIRCUITS */
|
||||
HashMap<String, ICircuit> getRegisteredCircuits();
|
||||
|
||||
void registerCircuit(ICircuit circuit);
|
||||
|
||||
ICircuit getCircuit(String uid);
|
||||
|
||||
ICircuitLibrary getCircuitLibrary(World world, String playername);
|
||||
|
||||
void registerLegacyMapping(int id, String uid);
|
||||
|
||||
ICircuit getFromLegacyMap(int id);
|
||||
|
||||
/* LAYOUTS */
|
||||
HashMap<String, ICircuitLayout> getRegisteredLayouts();
|
||||
|
||||
void registerLayout(ICircuitLayout layout);
|
||||
|
||||
ICircuitLayout getLayout(String uid);
|
||||
|
||||
ICircuitLayout getDefaultLayout();
|
||||
|
||||
|
||||
ICircuitBoard getCircuitboard(ItemStack itemstack);
|
||||
|
||||
boolean isChipset(ItemStack itemstack);
|
||||
|
||||
}
|
9
BM_src/forestry/api/circuits/ISolderManager.java
Normal file
9
BM_src/forestry/api/circuits/ISolderManager.java
Normal file
|
@ -0,0 +1,9 @@
|
|||
package forestry.api.circuits;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface ISolderManager {
|
||||
|
||||
void addRecipe(ICircuitLayout layout, ItemStack resource, ICircuit circuit);
|
||||
|
||||
}
|
3
BM_src/forestry/api/circuits/package-info.java
Normal file
3
BM_src/forestry/api/circuits/package-info.java
Normal file
|
@ -0,0 +1,3 @@
|
|||
@API(apiVersion="1.0", owner="ForestryAPI|core", provides="ForestryAPI|circuits")
|
||||
package forestry.api.circuits;
|
||||
import cpw.mods.fml.common.API;
|
Loading…
Add table
Add a link
Reference in a new issue