mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
anyway
This commit is contained in:
parent
a14899ad1e
commit
29fb57053d
@ -1,3 +1,6 @@
|
||||
## Changed
|
||||
* Changed the multi fluid ID recipe, they now use analog circuits instead of silicon based ones, no longer requiring plastic to make
|
||||
|
||||
## Fixed
|
||||
* Fixed pumpjack gauges not syncing properly
|
||||
* Fixed some concrete variants not being revertable into uncolored concrete
|
||||
9
src/main/java/api/hbm/redstoneoverradio/IRORInfo.java
Normal file
9
src/main/java/api/hbm/redstoneoverradio/IRORInfo.java
Normal file
@ -0,0 +1,9 @@
|
||||
package api.hbm.redstoneoverradio;
|
||||
|
||||
public interface IRORInfo {
|
||||
|
||||
public static String PREFIX_VALUE = "VAL:";
|
||||
public static String PREFIX_FUNCTION = "FUN:";
|
||||
|
||||
public String[] getFunctionInfo();
|
||||
}
|
||||
31
src/main/java/api/hbm/redstoneoverradio/IRORInteractive.java
Normal file
31
src/main/java/api/hbm/redstoneoverradio/IRORInteractive.java
Normal file
@ -0,0 +1,31 @@
|
||||
package api.hbm.redstoneoverradio;
|
||||
|
||||
public interface IRORInteractive extends IRORInfo {
|
||||
|
||||
public static String NAME_SEPARATOR = "!";
|
||||
public static String PARAM_SEPARATOR = ":";
|
||||
|
||||
public static String EX_NULL = "Exception: Null Command";
|
||||
public static String EX_NAME = "Exception: Multiple Name Separators";
|
||||
|
||||
public Object runRORFunction(String name, String[] params);
|
||||
|
||||
/** Extracts the command name from a full command string */
|
||||
public static String getCommand(String input) {
|
||||
if(input == null || input.isEmpty()) throw new RORFunctionException(EX_NULL);
|
||||
String[] parts = input.split(NAME_SEPARATOR);
|
||||
if(parts.length <= 0 || parts.length > 2) throw new RORFunctionException(EX_NAME);
|
||||
return parts[0];
|
||||
}
|
||||
|
||||
/** Extracts the param list from a full command string */
|
||||
public static String[] getParams(String input) {
|
||||
if(input == null || input.isEmpty()) throw new RORFunctionException(EX_NULL);
|
||||
String[] parts = input.split(NAME_SEPARATOR);
|
||||
if(parts.length <= 0 || parts.length > 2) throw new RORFunctionException(EX_NAME);
|
||||
if(parts.length == 1) return new String[0];
|
||||
String paramList = parts[1];
|
||||
String[] params = paramList.split(PARAM_SEPARATOR);
|
||||
return params;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,6 @@
|
||||
package api.hbm.redstoneoverradio;
|
||||
|
||||
public interface IRORValueProvider extends IRORInfo {
|
||||
|
||||
public Object provideRORValue(String name);
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
package api.hbm.redstoneoverradio;
|
||||
|
||||
public class RORFunctionException extends RuntimeException {
|
||||
|
||||
public RORFunctionException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
22
src/main/java/api/hbm/redstoneoverradio/package-info.java
Normal file
22
src/main/java/api/hbm/redstoneoverradio/package-info.java
Normal file
@ -0,0 +1,22 @@
|
||||
/**
|
||||
* @author hbm
|
||||
*
|
||||
*/
|
||||
package api.hbm.redstoneoverradio;
|
||||
|
||||
/*
|
||||
|
||||
__ __ __ _______ ________ __ __ __ __ ______ __
|
||||
/_/| /_/\ /_/| /______/\ /_______/| /_/| /_/| /_/|_____ /_/| /_____/| /_/|
|
||||
| || | \\ | || | ___ \\ | ______|/ | ||| || | |/_____| || |___ || | ||
|
||||
| || | \ \\ | || | | \ \\ | ||___ | |/| |/ | ______ || /__| || | ||__
|
||||
| || | |\ \\| || | | \ || | |/__/| \ // | |/_____| || | ___|/ | |/_/|
|
||||
| || | ||\ \| || | | | || | ____|/ > </\ |____ ____|/_ | |/__/| | __|/
|
||||
| || | || \ | || | | / || | ||_____ / _ \/| /_____| |______/| |______|/ | ||
|
||||
| || | || \ || | |___/ // | |/____/| | / \ || |________________|/ | ||
|
||||
|__|/ |__|/ \__|/ |________// |________|/ |__| |__|/ |__|/
|
||||
|
||||
(not AN index, INDEX is just the codename)
|
||||
(also no i did not use an ASCII font generator i spent like half an hour on this)
|
||||
|
||||
*/
|
||||
@ -938,7 +938,7 @@ public class CraftingManager {
|
||||
addRecipeAuto(new ItemStack(ModBlocks.charger), new Object[] { "G", "S", "C", 'G', Items.glowstone_dust, 'S', STEEL.ingot(), 'C', ModItems.coil_copper });
|
||||
addRecipeAuto(new ItemStack(ModBlocks.charger, 16), new Object[] { "G", "S", "C", 'G', Blocks.glowstone, 'S', STEEL.block(), 'C', ModItems.coil_copper_torus });
|
||||
addRecipeAuto(new ItemStack(ModBlocks.press_preheater), new Object[] { "CCC", "SLS", "TST", 'C', CU.plate(), 'S', Blocks.stone, 'L', Fluids.LAVA.getDict(1000), 'T', W.ingot() });
|
||||
addRecipeAuto(new ItemStack(ModItems.fluid_identifier_multi), new Object[] { "D", "C", "P", 'D', "dye", 'C', DictFrame.fromOne(ModItems.circuit, EnumCircuitType.BASIC), 'P', ANY_PLASTIC.ingot() });
|
||||
addRecipeAuto(new ItemStack(ModItems.fluid_identifier_multi), new Object[] { "D", "C", "P", 'D', "dye", 'C', DictFrame.fromOne(ModItems.circuit, EnumCircuitType.ANALOG), 'P', IRON.plate() });
|
||||
|
||||
addShapelessAuto(ItemBattery.getEmptyBattery(ModItems.anchor_remote), new Object[] { DIAMOND.gem(), ModItems.ducttape, DictFrame.fromOne(ModItems.circuit, EnumCircuitType.BASIC) });
|
||||
addRecipeAuto(new ItemStack(ModBlocks.teleanchor), new Object[] { "ODO", "EAE", "ODO", 'O', Blocks.obsidian, 'D', DIAMOND.gem(), 'E', ModItems.powder_magic, 'A', ModItems.gem_alexandrite });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user