removed libraries

This commit is contained in:
HbmMods 2020-06-22 22:05:10 +02:00
parent bdc0cd4292
commit cbaf096edb
11 changed files with 27 additions and 2 deletions

View File

@ -0,0 +1,14 @@
package api.hbm.energy;
import net.minecraft.item.ItemStack;
public interface IBatteryItem {
public void chargeBattery(ItemStack stack, long i);
public void setCharge(ItemStack stack, long i);
public void dischargeBattery(ItemStack stack, long i);
public long getCharge(ItemStack stack);
public long getMaxCharge();
public long getChargeRate();
public long getDischargeRate();
}

View File

@ -0,0 +1,5 @@
package api.hbm.energy;
public interface IEnergyConsumer {
}

View File

@ -0,0 +1,5 @@
package api.hbm.energy;
public interface IEnergySource {
}

View File

@ -5,4 +5,4 @@ package com.hbm.interfaces;
public @interface Spaghetti {
public String value();
}
}

View File

@ -440,13 +440,14 @@ public class Library {
return power;
}
//TODO: jesus christ kill it
//TODO: jesus christ
//Flut-Füll gesteuerter Energieübertragungsalgorithmus
//Flood fill controlled energy transmission algorithm
public static void ffgeua(int x, int y, int z, boolean newTact, ISource that, World worldObj) {
Block block = worldObj.getBlock(x, y, z);
TileEntity tileentity = worldObj.getTileEntity(x, y, z);
//TODO: transition multiblocks to use the XR mutliblock handler so this spaghetti trash becomes obsolete
//Factories
if(block == ModBlocks.factory_titanium_conductor && worldObj.getBlock(x, y + 1, z) == ModBlocks.factory_titanium_core)
{