Moved interfaces around
Added learnable/recoverable variables to the EMC mappings Renamed the PStone recipes
This commit is contained in:
parent
f18d562885
commit
f4880dd5e1
15 changed files with 147 additions and 90 deletions
|
@ -7,7 +7,7 @@ import net.minecraft.src.EntityPlayer;
|
|||
import net.minecraft.src.ModLoader;
|
||||
import net.minecraft.src.NetworkManager;
|
||||
import net.minecraft.src.World;
|
||||
import net.minecraft.src.ee3.core.IProxy;
|
||||
import net.minecraft.src.ee3.interfaces.IProxy;
|
||||
import net.minecraft.src.forge.MinecraftForgeClient;
|
||||
|
||||
public class EEProxy implements IProxy {
|
||||
|
|
|
@ -4,17 +4,23 @@ public class EMCMapping {
|
|||
|
||||
private float cost;
|
||||
private float recovery;
|
||||
private boolean learnable;
|
||||
private boolean recoverable;
|
||||
|
||||
public EMCMapping() { }
|
||||
|
||||
public EMCMapping(float cost) {
|
||||
this.cost = cost;
|
||||
recovery = cost;
|
||||
learnable = true;
|
||||
recoverable = true;
|
||||
}
|
||||
|
||||
public EMCMapping(float cost, float recovery) {
|
||||
public EMCMapping(float cost, float recovery, boolean learnable, boolean recoverable) {
|
||||
this.cost = cost;
|
||||
this.recovery = recovery;
|
||||
this.learnable = learnable;
|
||||
this.recoverable = recoverable;
|
||||
}
|
||||
|
||||
public float getCostEMC() {
|
||||
|
@ -25,6 +31,14 @@ public class EMCMapping {
|
|||
return recovery;
|
||||
}
|
||||
|
||||
public boolean isLearnable() {
|
||||
return learnable;
|
||||
}
|
||||
|
||||
public boolean isRecoverable() {
|
||||
return recoverable;
|
||||
}
|
||||
|
||||
public void setCostEMC(float cost) {
|
||||
this.cost = cost;
|
||||
}
|
||||
|
@ -32,4 +46,12 @@ public class EMCMapping {
|
|||
public void setRecoveryEMC(float recovery) {
|
||||
this.recovery = recovery;
|
||||
}
|
||||
|
||||
public void setLearnable(boolean learnable) {
|
||||
this.learnable = learnable;
|
||||
}
|
||||
|
||||
public void setRecoverable(boolean recoverable) {
|
||||
this.recoverable = recoverable;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
package net.minecraft.src.ee3.core;
|
||||
|
||||
public interface IItemModal {
|
||||
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
package net.minecraft.src.ee3.core;
|
||||
|
||||
public class PStoneRecipes {
|
||||
public class RecipesPhilStone {
|
||||
|
||||
public void init() {
|
||||
// X dirt == X cobblestone == X stone == X sand
|
|
@ -1,6 +1,7 @@
|
|||
package net.minecraft.src.ee3.core;
|
||||
|
||||
import net.minecraft.src.ModLoader;
|
||||
import net.minecraft.src.ee3.interfaces.IProxy;
|
||||
import net.minecraft.src.ee3.lib.Reference;
|
||||
import net.minecraft.src.forge.MinecraftForge;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package net.minecraft.src.ee3.core;
|
||||
package net.minecraft.src.ee3.interfaces;
|
||||
|
||||
public interface IItemChargeable {
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package net.minecraft.src.ee3.interfaces;
|
||||
|
||||
public interface IItemModal {
|
||||
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package net.minecraft.src.ee3.core;
|
||||
package net.minecraft.src.ee3.interfaces;
|
||||
|
||||
import java.io.File;
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
package net.minecraft.src.ee3.item;
|
||||
|
||||
public class ItemChargeable extends ItemMod {
|
||||
|
||||
private int maxCharge;
|
||||
|
||||
public ItemChargeable(int i, int j) {
|
||||
super(i);
|
||||
maxCharge = j;
|
||||
}
|
||||
}
|
8
ee3_common/net/minecraft/src/ee3/item/ItemEE.java
Normal file
8
ee3_common/net/minecraft/src/ee3/item/ItemEE.java
Normal file
|
@ -0,0 +1,8 @@
|
|||
package net.minecraft.src.ee3.item;
|
||||
|
||||
public class ItemEE extends ItemMod {
|
||||
|
||||
public ItemEE(int i) {
|
||||
super(i);
|
||||
}
|
||||
}
|
10
ee3_common/net/minecraft/src/ee3/item/ItemEEStackable.java
Normal file
10
ee3_common/net/minecraft/src/ee3/item/ItemEEStackable.java
Normal file
|
@ -0,0 +1,10 @@
|
|||
package net.minecraft.src.ee3.item;
|
||||
|
||||
public class ItemEEStackable extends ItemMod {
|
||||
|
||||
public ItemEEStackable(int i) {
|
||||
super(i);
|
||||
maxStackSize = 64;
|
||||
}
|
||||
|
||||
}
|
|
@ -14,7 +14,6 @@ public class ItemMod extends Item implements ITextureProvider {
|
|||
|
||||
@Override
|
||||
public String getTextureFile() {
|
||||
// TODO Proper location
|
||||
return Reference.SPRITE_SHEET_LOCATION + Reference.ITEM_SPRITE_SHEET;
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
package net.minecraft.src.ee3.item;
|
||||
|
||||
import net.minecraft.src.ee3.interfaces.IItemChargeable;
|
||||
import net.minecraft.src.ee3.interfaces.IItemModal;
|
||||
|
||||
public class ItemPhilosopherStone extends ItemEE implements IItemChargeable, IItemModal {
|
||||
|
||||
private int maxCharge;
|
||||
|
||||
public ItemPhilosopherStone(int i) {
|
||||
super(i);
|
||||
maxCharge = 4;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxCharge() {
|
||||
return maxCharge;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void increaseCharge() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decreaseCharge() {
|
||||
}
|
||||
|
||||
}
|
|
@ -2,10 +2,10 @@ package net.minecraft.src;
|
|||
|
||||
import net.minecraft.src.ModLoader;
|
||||
import net.minecraft.src.ee3.core.ConfigurationManager;
|
||||
import net.minecraft.src.ee3.core.IProxy;
|
||||
import net.minecraft.src.ee3.core.ServerClientProxy;
|
||||
import net.minecraft.src.ee3.core.Version;
|
||||
import net.minecraft.src.ee3.gui.GuiHandler;
|
||||
import net.minecraft.src.ee3.interfaces.IProxy;
|
||||
import net.minecraft.src.ee3.lib.Reference;
|
||||
import net.minecraft.src.ee3.lib.Sounds;
|
||||
import net.minecraft.src.ee3.network.PacketHandler;
|
||||
|
|
|
@ -6,7 +6,7 @@ import net.minecraft.src.EntityPlayer;
|
|||
import net.minecraft.src.ModLoader;
|
||||
import net.minecraft.src.NetworkManager;
|
||||
import net.minecraft.src.World;
|
||||
import net.minecraft.src.ee3.core.IProxy;
|
||||
import net.minecraft.src.ee3.interfaces.IProxy;
|
||||
|
||||
public class EEProxy implements IProxy {
|
||||
|
||||
|
|
Loading…
Reference in a new issue