Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| db7296c0a1 | |||
| d1f2625262 | |||
| b756a3f564 | |||
| dfa595ad2a | |||
| 0519f60cb0 | |||
| 81c32d5181 | |||
| b609b08f98 |
@@ -48,8 +48,14 @@ public class GuiCraftAmount extends AEBaseGui
|
|||||||
|
|
||||||
GuiButton next;
|
GuiButton next;
|
||||||
|
|
||||||
GuiButton plus1, plus10, plus100, plus1000;
|
GuiButton plus1;
|
||||||
GuiButton minus1, minus10, minus100, minus1000;
|
GuiButton plus10;
|
||||||
|
GuiButton plus100;
|
||||||
|
GuiButton plus1000;
|
||||||
|
GuiButton minus1;
|
||||||
|
GuiButton minus10;
|
||||||
|
GuiButton minus100;
|
||||||
|
GuiButton minus1000;
|
||||||
|
|
||||||
GuiBridge OriginalGui;
|
GuiBridge OriginalGui;
|
||||||
|
|
||||||
|
|||||||
@@ -309,7 +309,8 @@ public class GuiCraftingCPU extends AEBaseGui implements ISortSource
|
|||||||
IAEItemStack pendingStack = this.pending.findPrecise( refStack );
|
IAEItemStack pendingStack = this.pending.findPrecise( refStack );
|
||||||
|
|
||||||
int lines = 0;
|
int lines = 0;
|
||||||
boolean active = false, scheduled = false;
|
boolean active = false;
|
||||||
|
boolean scheduled = false;
|
||||||
|
|
||||||
if ( stored != null && stored.getStackSize() > 0 )
|
if ( stored != null && stored.getStackSize() > 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -47,8 +47,14 @@ public class GuiLevelEmitter extends GuiUpgradeable
|
|||||||
|
|
||||||
GuiNumberBox level;
|
GuiNumberBox level;
|
||||||
|
|
||||||
GuiButton plus1, plus10, plus100, plus1000;
|
GuiButton plus1;
|
||||||
GuiButton minus1, minus10, minus100, minus1000;
|
GuiButton plus10;
|
||||||
|
GuiButton plus100;
|
||||||
|
GuiButton plus1000;
|
||||||
|
GuiButton minus1;
|
||||||
|
GuiButton minus10;
|
||||||
|
GuiButton minus100;
|
||||||
|
GuiButton minus1000;
|
||||||
|
|
||||||
GuiImgButton levelMode;
|
GuiImgButton levelMode;
|
||||||
GuiImgButton craftingMode;
|
GuiImgButton craftingMode;
|
||||||
|
|||||||
@@ -97,7 +97,8 @@ public class GuiMEMonitorable extends AEBaseMEGui implements ISortSource, IConfi
|
|||||||
GuiImgButton SortByBox;
|
GuiImgButton SortByBox;
|
||||||
GuiImgButton SortDirBox;
|
GuiImgButton SortDirBox;
|
||||||
|
|
||||||
GuiImgButton searchBoxSettings, terminalStyleBox;
|
GuiImgButton searchBoxSettings;
|
||||||
|
GuiImgButton terminalStyleBox;
|
||||||
final boolean viewCell;
|
final boolean viewCell;
|
||||||
|
|
||||||
final ItemStack[] myCurrentViewCells = new ItemStack[5];
|
final ItemStack[] myCurrentViewCells = new ItemStack[5];
|
||||||
|
|||||||
@@ -51,8 +51,14 @@ public class GuiPriority extends AEBaseGui
|
|||||||
GuiNumberBox priority;
|
GuiNumberBox priority;
|
||||||
GuiTabButton originalGuiBtn;
|
GuiTabButton originalGuiBtn;
|
||||||
|
|
||||||
GuiButton plus1, plus10, plus100, plus1000;
|
GuiButton plus1;
|
||||||
GuiButton minus1, minus10, minus100, minus1000;
|
GuiButton plus10;
|
||||||
|
GuiButton plus100;
|
||||||
|
GuiButton plus1000;
|
||||||
|
GuiButton minus1;
|
||||||
|
GuiButton minus10;
|
||||||
|
GuiButton minus100;
|
||||||
|
GuiButton minus1000;
|
||||||
|
|
||||||
GuiBridge OriginalGui;
|
GuiBridge OriginalGui;
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,11 @@ public class GuiSecurity extends GuiMEMonitorable
|
|||||||
this.standardSize = this.xSize;
|
this.standardSize = this.xSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
GuiToggleButton inject, extract, craft, build, security;
|
GuiToggleButton inject;
|
||||||
|
GuiToggleButton extract;
|
||||||
|
GuiToggleButton craft;
|
||||||
|
GuiToggleButton build;
|
||||||
|
GuiToggleButton security;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initGui()
|
public void initGui()
|
||||||
|
|||||||
@@ -606,9 +606,15 @@ public class BaseBlockRender
|
|||||||
{
|
{
|
||||||
Tessellator tess = Tessellator.instance;
|
Tessellator tess = Tessellator.instance;
|
||||||
|
|
||||||
double offsetX = 0.0, offsetY = 0.0, offsetZ = 0.0;
|
double offsetX = 0.0;
|
||||||
double layerAX = 0.0, layerAY = 0.0, layerAZ = 0.0;
|
double offsetY = 0.0;
|
||||||
double layerBX = 0.0, layerBY = 0.0, layerBZ = 0.0;
|
double offsetZ = 0.0;
|
||||||
|
double layerAX = 0.0;
|
||||||
|
double layerAY = 0.0;
|
||||||
|
double layerAZ = 0.0;
|
||||||
|
double layerBX = 0.0;
|
||||||
|
double layerBY = 0.0;
|
||||||
|
double layerBZ = 0.0;
|
||||||
|
|
||||||
boolean flip = false;
|
boolean flip = false;
|
||||||
switch (orientation)
|
switch (orientation)
|
||||||
|
|||||||
@@ -45,7 +45,9 @@ public class CableRenderHelper
|
|||||||
|
|
||||||
private void setSide(ForgeDirection s)
|
private void setSide(ForgeDirection s)
|
||||||
{
|
{
|
||||||
ForgeDirection ax, ay, az;
|
ForgeDirection ax;
|
||||||
|
ForgeDirection ay;
|
||||||
|
ForgeDirection az;
|
||||||
|
|
||||||
switch (s)
|
switch (s)
|
||||||
{
|
{
|
||||||
@@ -205,7 +207,9 @@ public class CableRenderHelper
|
|||||||
IPart part = cableBusContainer.getPart( s );
|
IPart part = cableBusContainer.getPart( s );
|
||||||
if ( part != null )
|
if ( part != null )
|
||||||
{
|
{
|
||||||
ForgeDirection ax, ay, az;
|
ForgeDirection ax;
|
||||||
|
ForgeDirection ay;
|
||||||
|
ForgeDirection az;
|
||||||
|
|
||||||
switch (s)
|
switch (s)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ import appeng.block.AEBaseBlock;
|
|||||||
import appeng.core.AELog;
|
import appeng.core.AELog;
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public class WorldRender implements ISimpleBlockRenderingHandler
|
public final class WorldRender implements ISimpleBlockRenderingHandler
|
||||||
{
|
{
|
||||||
|
|
||||||
private final RenderBlocks renderer = new RenderBlocks();
|
private final RenderBlocks renderer = new RenderBlocks();
|
||||||
|
|||||||
@@ -28,7 +28,9 @@ public class ContainerOpenContext
|
|||||||
{
|
{
|
||||||
|
|
||||||
public World w;
|
public World w;
|
||||||
public int x, y, z;
|
public int x;
|
||||||
|
public int y;
|
||||||
|
public int z;
|
||||||
public ForgeDirection side;
|
public ForgeDirection side;
|
||||||
final public boolean isItem;
|
final public boolean isItem;
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,9 @@ public class ContainerUpgradeable extends AEBaseContainer implements IOptionalSl
|
|||||||
this.upgradeable = te;
|
this.upgradeable = te;
|
||||||
|
|
||||||
World w = null;
|
World w = null;
|
||||||
int xCoord = 0, yCoord = 0, zCoord = 0;
|
int xCoord = 0;
|
||||||
|
int yCoord = 0;
|
||||||
|
int zCoord = 0;
|
||||||
|
|
||||||
if ( te instanceof TileEntity )
|
if ( te instanceof TileEntity )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import appeng.core.features.AEFeature;
|
|||||||
import appeng.tile.AEBaseTile;
|
import appeng.tile.AEBaseTile;
|
||||||
import appeng.util.Platform;
|
import appeng.util.Platform;
|
||||||
|
|
||||||
public class AELog
|
public final class AELog
|
||||||
{
|
{
|
||||||
|
|
||||||
public static final FMLRelaunchLog instance = FMLRelaunchLog.log;
|
public static final FMLRelaunchLog instance = FMLRelaunchLog.log;
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ import appeng.me.GridConnection;
|
|||||||
import appeng.me.GridNode;
|
import appeng.me.GridNode;
|
||||||
import appeng.util.Platform;
|
import appeng.util.Platform;
|
||||||
|
|
||||||
public class Api implements IAppEngApi
|
public final class Api implements IAppEngApi
|
||||||
{
|
{
|
||||||
|
|
||||||
public static final Api INSTANCE = new Api();
|
public static final Api INSTANCE = new Api();
|
||||||
|
|||||||
@@ -37,8 +37,9 @@ import cpw.mods.fml.common.network.NetworkRegistry;
|
|||||||
|
|
||||||
import com.google.common.base.Stopwatch;
|
import com.google.common.base.Stopwatch;
|
||||||
|
|
||||||
import appeng.core.crash.CrashEnhancement;
|
|
||||||
import appeng.core.crash.CrashInfo;
|
import appeng.core.crash.CrashInfo;
|
||||||
|
import appeng.core.crash.IntegrationCrashEnhancement;
|
||||||
|
import appeng.core.crash.ModCrashEnhancement;
|
||||||
import appeng.core.features.AEFeature;
|
import appeng.core.features.AEFeature;
|
||||||
import appeng.core.sync.GuiBridge;
|
import appeng.core.sync.GuiBridge;
|
||||||
import appeng.core.sync.network.NetworkHandler;
|
import appeng.core.sync.network.NetworkHandler;
|
||||||
@@ -79,7 +80,7 @@ public class AppEng
|
|||||||
|
|
||||||
this.imcHandler = new IMCHandler();
|
this.imcHandler = new IMCHandler();
|
||||||
|
|
||||||
FMLCommonHandler.instance().registerCrashCallable( new CrashEnhancement( CrashInfo.MOD_VERSION ) );
|
FMLCommonHandler.instance().registerCrashCallable( new ModCrashEnhancement( CrashInfo.MOD_VERSION ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
public final File getConfigDirectory()
|
public final File getConfigDirectory()
|
||||||
@@ -167,7 +168,7 @@ public class AppEng
|
|||||||
|
|
||||||
Registration.INSTANCE.postInit( event );
|
Registration.INSTANCE.postInit( event );
|
||||||
IntegrationRegistry.INSTANCE.postInit();
|
IntegrationRegistry.INSTANCE.postInit();
|
||||||
FMLCommonHandler.instance().registerCrashCallable( new CrashEnhancement( CrashInfo.INTEGRATION ) );
|
FMLCommonHandler.instance().registerCrashCallable( new IntegrationCrashEnhancement() );
|
||||||
|
|
||||||
CommonHelper.proxy.postInit();
|
CommonHelper.proxy.postInit();
|
||||||
AEConfig.instance.save();
|
AEConfig.instance.save();
|
||||||
|
|||||||
+6
-31
@@ -21,52 +21,27 @@ package appeng.core.crash;
|
|||||||
|
|
||||||
import cpw.mods.fml.common.ICrashCallable;
|
import cpw.mods.fml.common.ICrashCallable;
|
||||||
|
|
||||||
import appeng.core.AEConfig;
|
|
||||||
import appeng.integration.IntegrationRegistry;
|
|
||||||
|
|
||||||
|
abstract class BaseCrashEnhancement implements ICrashCallable
|
||||||
public class CrashEnhancement implements ICrashCallable
|
|
||||||
{
|
{
|
||||||
|
|
||||||
private final String name;
|
private final String name;
|
||||||
private final String value;
|
private final String value;
|
||||||
|
|
||||||
private final String ModVersion = AEConfig.CHANNEL + ' ' + AEConfig.VERSION + " for Forge " + // WHAT?
|
public BaseCrashEnhancement( String name, String value )
|
||||||
net.minecraftforge.common.ForgeVersion.majorVersion + '.' // majorVersion
|
|
||||||
+ net.minecraftforge.common.ForgeVersion.minorVersion + '.' // minorVersion
|
|
||||||
+ net.minecraftforge.common.ForgeVersion.revisionVersion + '.' // revisionVersion
|
|
||||||
+ net.minecraftforge.common.ForgeVersion.buildVersion;
|
|
||||||
|
|
||||||
public CrashEnhancement( CrashInfo Output )
|
|
||||||
{
|
{
|
||||||
|
this.name = name;
|
||||||
if ( Output == CrashInfo.MOD_VERSION )
|
this.value = value;
|
||||||
{
|
|
||||||
this.name = "AE2 Version";
|
|
||||||
this.value = this.ModVersion;
|
|
||||||
}
|
|
||||||
else if ( Output == CrashInfo.INTEGRATION )
|
|
||||||
{
|
|
||||||
this.name = "AE2 Integration";
|
|
||||||
this.value = IntegrationRegistry.INSTANCE.getStatus();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this.name = "AE2_UNKNOWN";
|
|
||||||
this.value = "UNKNOWN_VALUE";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String call() throws Exception
|
public final String call() throws Exception
|
||||||
{
|
{
|
||||||
return this.value;
|
return this.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getLabel()
|
public final String getLabel()
|
||||||
{
|
{
|
||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package appeng.core.crash;
|
||||||
|
|
||||||
|
|
||||||
|
import appeng.integration.IntegrationRegistry;
|
||||||
|
|
||||||
|
|
||||||
|
public class IntegrationCrashEnhancement extends BaseCrashEnhancement
|
||||||
|
{
|
||||||
|
public IntegrationCrashEnhancement()
|
||||||
|
{
|
||||||
|
super( "AE2 Integration", IntegrationRegistry.INSTANCE.getStatus() );
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
package appeng.core.crash;
|
||||||
|
|
||||||
|
|
||||||
|
import appeng.core.AEConfig;
|
||||||
|
|
||||||
|
|
||||||
|
public class ModCrashEnhancement extends BaseCrashEnhancement
|
||||||
|
{
|
||||||
|
private static final String MOD_VERSION = AEConfig.CHANNEL + ' ' + AEConfig.VERSION + " for Forge " + // WHAT?
|
||||||
|
net.minecraftforge.common.ForgeVersion.majorVersion + '.' // majorVersion
|
||||||
|
+ net.minecraftforge.common.ForgeVersion.minorVersion + '.' // minorVersion
|
||||||
|
+ net.minecraftforge.common.ForgeVersion.revisionVersion + '.' // revisionVersion
|
||||||
|
+ net.minecraftforge.common.ForgeVersion.buildVersion;
|
||||||
|
|
||||||
|
public ModCrashEnhancement( CrashInfo output )
|
||||||
|
{
|
||||||
|
super( "AE2 Version", MOD_VERSION );
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -25,7 +25,7 @@ import net.minecraft.world.WorldProvider;
|
|||||||
|
|
||||||
import appeng.api.features.IWorldGen;
|
import appeng.api.features.IWorldGen;
|
||||||
|
|
||||||
public class WorldGenRegistry implements IWorldGen
|
public final class WorldGenRegistry implements IWorldGen
|
||||||
{
|
{
|
||||||
|
|
||||||
private static class TypeSet
|
private static class TypeSet
|
||||||
|
|||||||
@@ -109,7 +109,8 @@ public enum Achievements
|
|||||||
|
|
||||||
public final ItemStack stack;
|
public final ItemStack stack;
|
||||||
public final AchievementType type;
|
public final AchievementType type;
|
||||||
private final int x, y;
|
private final int x;
|
||||||
|
private final int y;
|
||||||
|
|
||||||
private Achievement parent;
|
private Achievement parent;
|
||||||
private Achievement stat;
|
private Achievement stat;
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ package appeng.core.sync;
|
|||||||
|
|
||||||
|
|
||||||
import java.lang.reflect.Constructor;
|
import java.lang.reflect.Constructor;
|
||||||
import java.util.regex.Pattern;
|
|
||||||
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.entity.player.InventoryPlayer;
|
import net.minecraft.entity.player.InventoryPlayer;
|
||||||
@@ -191,8 +190,6 @@ public enum GuiBridge implements IGuiHandler
|
|||||||
|
|
||||||
GUI_CRAFTING_STATUS(ContainerCraftingStatus.class, ITerminalHost.class, ITEM_OR_WORLD, SecurityPermissions.CRAFT);
|
GUI_CRAFTING_STATUS(ContainerCraftingStatus.class, ITerminalHost.class, ITEM_OR_WORLD, SecurityPermissions.CRAFT);
|
||||||
|
|
||||||
private static final Pattern PATTERN_PRE_CONTAINER = Pattern.compile( ".Container", Pattern.LITERAL );
|
|
||||||
private static final Pattern PATTERN_POST_CONTAINER = Pattern.compile( "container." );
|
|
||||||
private final Class Tile;
|
private final Class Tile;
|
||||||
private Class Gui;
|
private Class Gui;
|
||||||
private final Class Container;
|
private final Class Container;
|
||||||
@@ -214,14 +211,13 @@ public enum GuiBridge implements IGuiHandler
|
|||||||
if ( Platform.isClient() )
|
if ( Platform.isClient() )
|
||||||
{
|
{
|
||||||
final String start = this.Container.getName();
|
final String start = this.Container.getName();
|
||||||
final String guiClassPostReplaced = PATTERN_POST_CONTAINER.matcher( start ).replaceFirst( "client.gui." );
|
String guiClass = start.replaceFirst( "container.", "client.gui." ).replace( ".Container", ".Gui" );
|
||||||
final String guiClassPreReplaced = PATTERN_PRE_CONTAINER.matcher( guiClassPostReplaced ).replaceAll( ".Gui" );
|
|
||||||
|
|
||||||
if ( start.equals( guiClassPreReplaced ) )
|
if ( start.equals( guiClass ) )
|
||||||
throw new RuntimeException( "Unable to find gui class" );
|
throw new RuntimeException( "Unable to find gui class" );
|
||||||
this.Gui = ReflectionHelper.getClass( this.getClass().getClassLoader(), guiClassPreReplaced );
|
this.Gui = ReflectionHelper.getClass( this.getClass().getClassLoader(), guiClass );
|
||||||
if ( this.Gui == null )
|
if ( this.Gui == null )
|
||||||
throw new RuntimeException( "Cannot Load class: " + guiClassPreReplaced );
|
throw new RuntimeException( "Cannot Load class: " + guiClass );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,9 @@ import appeng.util.item.AEItemStack;
|
|||||||
public class PacketAssemblerAnimation extends AppEngPacket
|
public class PacketAssemblerAnimation extends AppEngPacket
|
||||||
{
|
{
|
||||||
|
|
||||||
final public int x, y, z;
|
final public int x;
|
||||||
|
final public int y;
|
||||||
|
final public int z;
|
||||||
final public byte rate;
|
final public byte rate;
|
||||||
final public IAEItemStack is;
|
final public IAEItemStack is;
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,9 @@ public class PacketCompassRequest extends AppEngPacket implements ICompassCallba
|
|||||||
{
|
{
|
||||||
|
|
||||||
final public long attunement;
|
final public long attunement;
|
||||||
final public int cx, cz, cdy;
|
final public int cx;
|
||||||
|
final public int cz;
|
||||||
|
final public int cdy;
|
||||||
|
|
||||||
EntityPlayer talkBackTo;
|
EntityPlayer talkBackTo;
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,9 @@ public class PacketCompassResponse extends AppEngPacket
|
|||||||
{
|
{
|
||||||
|
|
||||||
final public long attunement;
|
final public long attunement;
|
||||||
final public int cx, cz, cdy;
|
final public int cx;
|
||||||
|
final public int cz;
|
||||||
|
final public int cdy;
|
||||||
|
|
||||||
public CompassResult cr;
|
public CompassResult cr;
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public class PacketNEIRecipe extends AppEngPacket
|
|||||||
EntityPlayerMP pmp = ( EntityPlayerMP ) player;
|
EntityPlayerMP pmp = ( EntityPlayerMP ) player;
|
||||||
Container con = pmp.openContainer;
|
Container con = pmp.openContainer;
|
||||||
|
|
||||||
if ( con != null && con instanceof IContainerCraftingPacket )
|
if ( con instanceof IContainerCraftingPacket )
|
||||||
{
|
{
|
||||||
IContainerCraftingPacket cct = ( IContainerCraftingPacket ) con;
|
IContainerCraftingPacket cct = ( IContainerCraftingPacket ) con;
|
||||||
IGridNode node = cct.getNetworkNode();
|
IGridNode node = cct.getNetworkNode();
|
||||||
|
|||||||
@@ -32,7 +32,10 @@ import appeng.parts.PartPlacement;
|
|||||||
public class PacketPartPlacement extends AppEngPacket
|
public class PacketPartPlacement extends AppEngPacket
|
||||||
{
|
{
|
||||||
|
|
||||||
int x, y, z, face;
|
int x;
|
||||||
|
int y;
|
||||||
|
int z;
|
||||||
|
int face;
|
||||||
float eyeHeight;
|
float eyeHeight;
|
||||||
|
|
||||||
// automatic.
|
// automatic.
|
||||||
|
|||||||
@@ -18,25 +18,30 @@
|
|||||||
|
|
||||||
package appeng.entity;
|
package appeng.entity;
|
||||||
|
|
||||||
|
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
|
|
||||||
public class EntityIds
|
|
||||||
{
|
|
||||||
|
|
||||||
|
public final class EntityIds
|
||||||
|
{
|
||||||
public static final int TINY_TNT = 10;
|
public static final int TINY_TNT = 10;
|
||||||
public static final int SINGULARITY = 11;
|
public static final int SINGULARITY = 11;
|
||||||
public static final int CHARGED_QUARTZ = 12;
|
public static final int CHARGED_QUARTZ = 12;
|
||||||
public static final int GROWING_CRYSTAL = 13;
|
public static final int GROWING_CRYSTAL = 13;
|
||||||
|
|
||||||
public static int get(Class<? extends Entity> droppedEntity)
|
private EntityIds()
|
||||||
{
|
{
|
||||||
if ( droppedEntity == EntityTinyTNTPrimed.class )
|
}
|
||||||
|
|
||||||
|
public static int get( Class<? extends Entity> droppedEntity )
|
||||||
|
{
|
||||||
|
if( droppedEntity == EntityTinyTNTPrimed.class )
|
||||||
return TINY_TNT;
|
return TINY_TNT;
|
||||||
if ( droppedEntity == EntitySingularity.class )
|
if( droppedEntity == EntitySingularity.class )
|
||||||
return SINGULARITY;
|
return SINGULARITY;
|
||||||
if ( droppedEntity == EntityChargedQuartz.class )
|
if( droppedEntity == EntityChargedQuartz.class )
|
||||||
return CHARGED_QUARTZ;
|
return CHARGED_QUARTZ;
|
||||||
if ( droppedEntity == EntityGrowingCrystal.class )
|
if( droppedEntity == EntityGrowingCrystal.class )
|
||||||
return GROWING_CRYSTAL;
|
return GROWING_CRYSTAL;
|
||||||
|
|
||||||
throw new RuntimeException( "Missing entity id: " + droppedEntity.getName() );
|
throw new RuntimeException( "Missing entity id: " + droppedEntity.getName() );
|
||||||
|
|||||||
@@ -313,7 +313,8 @@ public class MeteoritePlacer
|
|||||||
|
|
||||||
int verticalBits = 0;
|
int verticalBits = 0;
|
||||||
|
|
||||||
final int cx, cz;
|
final int cx;
|
||||||
|
final int cz;
|
||||||
|
|
||||||
public ChunkOnly(World w, int cx, int cz) {
|
public ChunkOnly(World w, int cx, int cz) {
|
||||||
super( w );
|
super( w );
|
||||||
@@ -657,7 +658,7 @@ public class MeteoritePlacer
|
|||||||
{
|
{
|
||||||
this.put( w, x, y, z, this.skychest );
|
this.put( w, x, y, z, this.skychest );
|
||||||
TileEntity te = w.getTileEntity( x, y, z );
|
TileEntity te = w.getTileEntity( x, y, z );
|
||||||
if ( te != null && te instanceof IInventory )
|
if ( te instanceof IInventory )
|
||||||
{
|
{
|
||||||
InventoryAdaptor ap = InventoryAdaptor.getAdaptor( te, ForgeDirection.UP );
|
InventoryAdaptor ap = InventoryAdaptor.getAdaptor( te, ForgeDirection.UP );
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ public class Splotch
|
|||||||
this.color = col;
|
this.color = col;
|
||||||
this.lumen = lit;
|
this.lumen = lit;
|
||||||
|
|
||||||
double x, y;
|
double x;
|
||||||
|
double y;
|
||||||
|
|
||||||
if ( side == ForgeDirection.SOUTH || side == ForgeDirection.NORTH )
|
if ( side == ForgeDirection.SOUTH || side == ForgeDirection.NORTH )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,7 +35,9 @@ public class CompassManager
|
|||||||
final int hash;
|
final int hash;
|
||||||
|
|
||||||
final long attunement;
|
final long attunement;
|
||||||
final int cx, cdy, cz;
|
final int cx;
|
||||||
|
final int cdy;
|
||||||
|
final int cz;
|
||||||
|
|
||||||
public CompassRequest(long attunement, int x, int y, int z) {
|
public CompassRequest(long attunement, int x, int y, int z) {
|
||||||
this.attunement = attunement;
|
this.attunement = attunement;
|
||||||
|
|||||||
@@ -253,7 +253,9 @@ public class ItemMultiPart extends AEBaseItem implements IPartItem, IItemGroup
|
|||||||
@Override
|
@Override
|
||||||
public String getUnlocalizedGroupName(Set<ItemStack> others, ItemStack is)
|
public String getUnlocalizedGroupName(Set<ItemStack> others, ItemStack is)
|
||||||
{
|
{
|
||||||
boolean importBus = false, exportBus = false, group = false;
|
boolean importBus = false;
|
||||||
|
boolean exportBus = false;
|
||||||
|
boolean group = false;
|
||||||
|
|
||||||
PartType u = this.getTypeByStack( is );
|
PartType u = this.getTypeByStack( is );
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ public class PartCraftingTerminal extends PartTerminal
|
|||||||
@Override
|
@Override
|
||||||
public void getDrops(List<ItemStack> drops, boolean wrenched)
|
public void getDrops(List<ItemStack> drops, boolean wrenched)
|
||||||
{
|
{
|
||||||
super.getDrops(drops, wrenched);
|
super.getDrops( drops, wrenched );
|
||||||
|
|
||||||
for (ItemStack is : this.craftingGrid)
|
for (ItemStack is : this.craftingGrid)
|
||||||
if ( is != null )
|
if ( is != null )
|
||||||
@@ -70,7 +70,9 @@ public class PartCraftingTerminal extends PartTerminal
|
|||||||
@Override
|
@Override
|
||||||
public GuiBridge getGui( EntityPlayer p )
|
public GuiBridge getGui( EntityPlayer p )
|
||||||
{
|
{
|
||||||
int x = (int) p.posX, y = (int) p.posY, z = (int) p.posZ;
|
int x = (int) p.posX;
|
||||||
|
int y = (int) p.posY;
|
||||||
|
int z = (int) p.posZ;
|
||||||
if ( this.getHost().getTile() != null )
|
if ( this.getHost().getTile() != null )
|
||||||
{
|
{
|
||||||
x = this.tile.xCoord;
|
x = this.tile.xCoord;
|
||||||
|
|||||||
@@ -80,7 +80,9 @@ public class PartPatternTerminal extends PartTerminal
|
|||||||
@Override
|
@Override
|
||||||
public GuiBridge getGui( EntityPlayer p )
|
public GuiBridge getGui( EntityPlayer p )
|
||||||
{
|
{
|
||||||
int x = (int) p.posX, y = (int) p.posY, z = (int) p.posZ;
|
int x = (int) p.posX;
|
||||||
|
int y = (int) p.posY;
|
||||||
|
int z = (int) p.posZ;
|
||||||
if ( this.getHost().getTile() != null )
|
if ( this.getHost().getTile() != null )
|
||||||
{
|
{
|
||||||
x = this.tile.xCoord;
|
x = this.tile.xCoord;
|
||||||
|
|||||||
@@ -45,7 +45,8 @@ public class CompassService implements ThreadFactory
|
|||||||
|
|
||||||
public final World world;
|
public final World world;
|
||||||
|
|
||||||
public final int chunkX, chunkZ;
|
public final int chunkX;
|
||||||
|
public final int chunkZ;
|
||||||
public final int doubleChunkY; // 32 blocks instead of 16.
|
public final int doubleChunkY; // 32 blocks instead of 16.
|
||||||
public final boolean value;
|
public final boolean value;
|
||||||
|
|
||||||
|
|||||||
@@ -158,7 +158,8 @@ public class StorageHelper
|
|||||||
*/
|
*/
|
||||||
public Entity teleportEntity(Entity entity, TelDestination link)
|
public Entity teleportEntity(Entity entity, TelDestination link)
|
||||||
{
|
{
|
||||||
WorldServer oldWorld, newWorld;
|
WorldServer oldWorld;
|
||||||
|
WorldServer newWorld;
|
||||||
EntityPlayerMP player;
|
EntityPlayerMP player;
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|||||||
@@ -20,9 +20,6 @@ package appeng.transformer.asm;
|
|||||||
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
|
||||||
import com.google.common.collect.HashMultimap;
|
|
||||||
import com.google.common.collect.Multimap;
|
|
||||||
|
|
||||||
import org.apache.logging.log4j.Level;
|
import org.apache.logging.log4j.Level;
|
||||||
import org.objectweb.asm.ClassReader;
|
import org.objectweb.asm.ClassReader;
|
||||||
import org.objectweb.asm.ClassWriter;
|
import org.objectweb.asm.ClassWriter;
|
||||||
@@ -38,6 +35,9 @@ import net.minecraft.launchwrapper.IClassTransformer;
|
|||||||
|
|
||||||
import cpw.mods.fml.relauncher.FMLRelaunchLog;
|
import cpw.mods.fml.relauncher.FMLRelaunchLog;
|
||||||
|
|
||||||
|
import com.google.common.collect.HashMultimap;
|
||||||
|
import com.google.common.collect.Multimap;
|
||||||
|
|
||||||
public class ASMTweaker implements IClassTransformer
|
public class ASMTweaker implements IClassTransformer
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -49,7 +49,8 @@ public class ASMTweaker implements IClassTransformer
|
|||||||
this.desc = desc;
|
this.desc = desc;
|
||||||
}
|
}
|
||||||
|
|
||||||
final String name, desc;
|
final String name;
|
||||||
|
final String desc;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,9 @@ public class BlockUpdate implements Callable
|
|||||||
{
|
{
|
||||||
|
|
||||||
final World w;
|
final World w;
|
||||||
final int x, y, z;
|
final int x;
|
||||||
|
final int y;
|
||||||
|
final int z;
|
||||||
|
|
||||||
public BlockUpdate(World w, int x, int y, int z) {
|
public BlockUpdate(World w, int x, int y, int z) {
|
||||||
this.w = w;
|
this.w = w;
|
||||||
|
|||||||
@@ -327,7 +327,9 @@ public class Platform
|
|||||||
if ( isClient() )
|
if ( isClient() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int x = (int) p.posX, y = (int) p.posY, z = (int) p.posZ;
|
int x = (int) p.posX;
|
||||||
|
int y = (int) p.posY;
|
||||||
|
int z = (int) p.posZ;
|
||||||
if ( tile != null )
|
if ( tile != null )
|
||||||
{
|
{
|
||||||
x = tile.xCoord;
|
x = tile.xCoord;
|
||||||
@@ -1602,7 +1604,8 @@ public class Platform
|
|||||||
|
|
||||||
public static void configurePlayer(EntityPlayer player, ForgeDirection side, TileEntity tile)
|
public static void configurePlayer(EntityPlayer player, ForgeDirection side, TileEntity tile)
|
||||||
{
|
{
|
||||||
float pitch = 0.0f, yaw = 0.0f;
|
float pitch = 0.0f;
|
||||||
|
float yaw = 0.0f;
|
||||||
player.yOffset = 1.8f;
|
player.yOffset = 1.8f;
|
||||||
|
|
||||||
switch (side)
|
switch (side)
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public final class AEFluidStack extends AEStack<IAEFluidStack> implements IAEFlu
|
|||||||
|
|
||||||
public int myHash;
|
public int myHash;
|
||||||
Fluid fluid;
|
Fluid fluid;
|
||||||
protected IAETagCompound tagCompound;
|
private IAETagCompound tagCompound;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
@@ -83,7 +83,7 @@ public final class AEFluidStack extends AEStack<IAEFluidStack> implements IAEFlu
|
|||||||
this.myHash = is.myHash;
|
this.myHash = is.myHash;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected AEFluidStack(FluidStack is) {
|
private AEFluidStack( FluidStack is ) {
|
||||||
if ( is == null )
|
if ( is == null )
|
||||||
throw new RuntimeException( "Invalid Itemstack." );
|
throw new RuntimeException( "Invalid Itemstack." );
|
||||||
|
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ public final class AEItemStack extends AEStack<IAEItemStack> implements IAEItemS
|
|||||||
this.setCountRequestable( is.getCountRequestable() );
|
this.setCountRequestable( is.getCountRequestable() );
|
||||||
}
|
}
|
||||||
|
|
||||||
protected AEItemStack(ItemStack is) {
|
private AEItemStack( ItemStack is ) {
|
||||||
if ( is == null )
|
if ( is == null )
|
||||||
throw new RuntimeException( "Invalid Itemstack." );
|
throw new RuntimeException( "Invalid Itemstack." );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user