generalized previous change
This commit is contained in:
parent
4191f69e14
commit
df2d09e176
6 changed files with 8 additions and 13 deletions
|
@ -67,7 +67,7 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IM
|
|||
private SafeTimeTracker debugBuildTracker = new SafeTimeTracker(5);
|
||||
|
||||
@MjBattery (maxReceivedPerCycle = 25)
|
||||
public double mjStored = 0;
|
||||
private double mjStored = 0;
|
||||
|
||||
private class PathIterator {
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ public class TileFiller extends TileBuildCraft implements IBuilderInventory, IMa
|
|||
private SimpleInventory inv = new SimpleInventory(27, "Filler", 64);
|
||||
|
||||
@MjBattery (maxReceivedPerCycle = 25)
|
||||
public double mjStored = 0;
|
||||
private double mjStored = 0;
|
||||
|
||||
public TileFiller() {
|
||||
inv.addListener(this);
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
package buildcraft.core;
|
||||
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -116,12 +115,8 @@ public class ReflectMjAPI {
|
|||
MjBattery battery = f.getAnnotation (MjBattery.class);
|
||||
|
||||
if (battery != null) {
|
||||
for (Method method : c.getMethods()) {
|
||||
if (method.getName().equals(f.getName() + "_$eq")) {
|
||||
f.setAccessible(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
f.setAccessible(true);
|
||||
|
||||
if (f.isAccessible() || Modifier.isPublic(f.getModifiers())) {
|
||||
BatteryField bField = new BatteryField();
|
||||
bField.field = f;
|
||||
|
|
|
@ -31,7 +31,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||
public class PipeFluidsWood extends Pipe<PipeTransportFluids> {
|
||||
|
||||
@MjBattery (maxCapacity = 250, maxReceivedPerCycle = 100, minimumConsumption = 0)
|
||||
public double mjStored = 0;
|
||||
private double mjStored = 0;
|
||||
|
||||
public @NetworkData
|
||||
int liquidToExtract;
|
||||
|
|
|
@ -41,7 +41,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||
public class PipeItemsObsidian extends Pipe<PipeTransportItems> {
|
||||
|
||||
@MjBattery (maxCapacity = 256, maxReceivedPerCycle = 64, minimumConsumption = 0)
|
||||
public double mjStored = 0;
|
||||
private double mjStored = 0;
|
||||
|
||||
private static final PowerHandler.PerditionCalculator PERDITION = new PowerHandler.PerditionCalculator(0.5F);
|
||||
private int[] entitiesDropped;
|
||||
|
|
|
@ -33,7 +33,7 @@ import buildcraft.transport.utils.TransportUtils;
|
|||
public class PipeItemsStripes extends Pipe <PipeTransportItems> {
|
||||
|
||||
@MjBattery (maxCapacity = 1, maxReceivedPerCycle = 1, minimumConsumption = 0)
|
||||
public double mjStored = 0;
|
||||
private double mjStored = 0;
|
||||
|
||||
public PipeItemsStripes(Item item) {
|
||||
super(new PipeTransportItems(), item);
|
||||
|
|
Loading…
Reference in a new issue