All GUI compile errors fixed, switched to excludes over includes in gradle build and lots, LOTS of more fixes.

This commit is contained in:
Sebastian Hartte
2020-06-06 21:16:05 +02:00
parent bb453b0d35
commit ff042a394b
209 changed files with 4527 additions and 4479 deletions
@@ -24,6 +24,9 @@
package appeng.api.config;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.TranslationTextComponent;
public enum PowerUnits
{
AE( "gui.appliedenergistics2.units.appliedenergstics" ), // Native Units - AE Energy
@@ -61,4 +64,8 @@ public enum PowerUnits
return ( value * this.conversionRatio ) / target.conversionRatio;
}
public ITextComponent textComponent() {
return new TranslationTextComponent(unlocalizedName);
}
}
@@ -26,6 +26,7 @@ package appeng.api.features;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Hand;
import net.minecraft.world.IBlockReader;
@@ -61,5 +62,5 @@ public interface IWirelessTermRegistry
* opens the wireless terminal gui, the wireless terminal item, must be in
* the active slot on the tool bar.
*/
void openWirelessTerminalGui( ItemStack item, IBlockReader world, PlayerEntity player );
void openWirelessTerminalGui( ItemStack item, IBlockReader world, PlayerEntity player, Hand hand );
}
@@ -100,6 +100,11 @@ public class WorldCoord
return this;
}
public BlockPos getBlockPos()
{
return new BlockPos(x, y, z);
}
/**
* Will Return NULL if it's at some diagonal!
*/