-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d86933
commit 1bb25c4
Showing
37 changed files
with
441 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule JMOD-RotaryCraft
updated
1 files
+2 −2 | src/main/java/com/jeffpeng/jmod/rotarycraft/DynamicBlock.java |
Submodule JMOD-VanillaIngotWorks
updated
1 files
+2 −2 | src/main/java/com/jeffpeng/jmod/vanillaingotworks/Scripting.java |
Submodule JMOD-applecore
updated
from 830e72 to 0eda31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
rm build/libs/* | ||
./gradlew build | ||
cp build/libs/jmod-*-complete.jar ~/.minecraftdevtest/mods | ||
#cp ~/mcdev/Survival-Industry-dev/Documents\ and\ Notes/Resource\ Packs/Survival\ Industry ~/.minecraftdevtest/resourcepacks -R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package com.jeffpeng.jmod.crafting; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import com.jeffpeng.jmod.JMODRepresentation; | ||
import com.jeffpeng.jmod.interfaces.IFurnaceFuel; | ||
import com.jeffpeng.jmod.interfaces.IItem; | ||
import com.jeffpeng.jmod.primitives.OwnedObject; | ||
import com.jeffpeng.jmod.types.blocks.CoreBlock; | ||
|
||
import net.minecraft.block.Block; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemStack; | ||
import cpw.mods.fml.common.IFuelHandler; | ||
|
||
public class FuelHandler implements IFuelHandler { | ||
private Map<Integer,Integer> fuelList = new HashMap<>(); | ||
|
||
public void setBurnTime(ItemStack is, int burntime){ | ||
Item item = is.getItem(); | ||
Block block = Block.getBlockFromItem(item); | ||
|
||
if(block != null && block instanceof IFurnaceFuel){ | ||
((IFurnaceFuel)block).setBurnTime(burntime); | ||
return; | ||
} | ||
|
||
Item.getIdFromItem(item); | ||
|
||
fuelList.put(Item.getIdFromItem(item), burntime); | ||
} | ||
|
||
@Override | ||
public int getBurnTime(ItemStack fuel) { | ||
|
||
Item item = fuel.getItem(); | ||
Block block = Block.getBlockFromItem(item); | ||
|
||
if(block != null && block instanceof IFurnaceFuel){ | ||
return ((CoreBlock)block).getBurnTime(); | ||
} | ||
|
||
if(item instanceof IFurnaceFuel){ | ||
return ((IItem)item).getBurnTime(); | ||
} else { | ||
return fuelList.get(Item.getIdFromItem(item)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.jeffpeng.jmod.interfaces; | ||
|
||
public interface IFurnaceFuel { | ||
abstract public int getBurnTime(); | ||
abstract public void setBurnTime(int burntime); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
src/main/java/com/jeffpeng/jmod/interfaces/ISettingsProcessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
package com.jeffpeng.jmod.interfaces; | ||
|
||
import com.jeffpeng.jmod.primitives.BasicAction; | ||
|
||
public interface ISettingsProcessor { | ||
|
||
public abstract void processSettings(ISettingsReceiver settings ); | ||
default public void processSettings(BasicAction settings ){ | ||
}; | ||
//public abstract void processSetting(String k, Object v); | ||
|
||
} |
22 changes: 0 additions & 22 deletions
22
src/main/java/com/jeffpeng/jmod/interfaces/ISettingsReceiver.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.