chore: format code

This commit is contained in:
LordMZTE 2024-04-30 16:33:35 +02:00
parent fb7abfe5fc
commit 4c4820693e
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
8 changed files with 12 additions and 28 deletions

View file

@ -3,6 +3,5 @@ package cofh.api.energy;
import net.minecraftforge.common.util.ForgeDirection;
public interface IEnergyConnection {
boolean canConnectEnergy(ForgeDirection var1);
boolean canConnectEnergy(ForgeDirection var1);
}

View file

@ -3,10 +3,9 @@ package cofh.api.energy;
import net.minecraftforge.common.util.ForgeDirection;
public interface IEnergyProvider extends IEnergyConnection {
int extractEnergy(ForgeDirection var1, int var2, boolean var3);
int extractEnergy(ForgeDirection var1, int var2, boolean var3);
int getEnergyStored(ForgeDirection var1);
int getEnergyStored(ForgeDirection var1);
int getMaxEnergyStored(ForgeDirection var1);
int getMaxEnergyStored(ForgeDirection var1);
}

View file

@ -3,10 +3,9 @@ package cofh.api.energy;
import net.minecraftforge.common.util.ForgeDirection;
public interface IEnergyReceiver extends IEnergyConnection {
int receiveEnergy(ForgeDirection var1, int var2, boolean var3);
int receiveEnergy(ForgeDirection var1, int var2, boolean var3);
int getEnergyStored(ForgeDirection var1);
int getEnergyStored(ForgeDirection var1);
int getMaxEnergyStored(ForgeDirection var1);
int getMaxEnergyStored(ForgeDirection var1);
}

View file

@ -1,13 +1,11 @@
package cofh.api.energy;
public interface IEnergyStorage {
int receiveEnergy(int var1, boolean var2);
int receiveEnergy(int var1, boolean var2);
int extractEnergy(int var1, boolean var2);
int extractEnergy(int var1, boolean var2);
int getEnergyStored();
int getEnergyStored();
int getMaxEnergyStored();
int getMaxEnergyStored();
}

View file

@ -10,7 +10,6 @@ import org.apache.commons.io.IOUtils;
import net.minecraftforge.common.MinecraftForge;
public class Capes {
private static boolean capesInitialized = false;
public static void initCapes() {
@ -21,14 +20,11 @@ public class Capes {
InputStream stream = DevCapes.getInstance().getStreamForURL(index);
String capeConfig = IOUtils.toString(stream);
stream.close();
DevCapes.getInstance().registerConfig(
capeConfig
);
DevCapes.getInstance().registerConfig(capeConfig);
MinecraftForge.EVENT_BUS.register(new RenderEventHandler());
} catch (Exception e) {
System.out.print("Cant load capes\n" + e);
}
}
}
}

View file

@ -1,11 +1,9 @@
package ley.modding.tileralib.api;
public interface IIngredient {
char getKey();
int getCount();
Object getIngredient();
}

View file

@ -1,12 +1,10 @@
package ley.modding.tileralib.api;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public interface IRegistry {
String getModID();
Item registerItem(Item item);
@ -20,5 +18,4 @@ public interface IRegistry {
void addShapedRecipe(ItemStack output, String[] pattern, IIngredient[] ingredients);
void addShapelessRecipe(ItemStack output, IIngredient[] input);
}

View file

@ -3,7 +3,5 @@ package ley.modding.tileralib.api;
import net.minecraft.tileentity.TileEntity;
public interface ITEProvider {
Class<? extends TileEntity> getTEClass();
}