removed all update errors from MC1.6
This commit is contained in:
parent
bbcc18dd9c
commit
7a3fc461d0
9 changed files with 30 additions and 26 deletions
|
@ -15,7 +15,7 @@ public interface INetworkPart extends ITileConnector
|
|||
/**
|
||||
* Update the connection this tile has to other tiles
|
||||
*/
|
||||
public void updateNetworkConnections();
|
||||
public void refresh();
|
||||
|
||||
/**
|
||||
* Gets the networkPart's primary network
|
||||
|
|
|
@ -4,10 +4,6 @@ import net.minecraftforge.event.ForgeSubscribe;
|
|||
import net.minecraftforge.fluids.Fluid;
|
||||
import net.minecraftforge.fluids.FluidRegistry;
|
||||
import net.minecraftforge.fluids.FluidRegistry.FluidRegisterEvent;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
import net.minecraftforge.liquids.LiquidDictionary;
|
||||
import net.minecraftforge.liquids.LiquidDictionary.LiquidRegisterEvent;
|
||||
import net.minecraftforge.liquids.LiquidStack;
|
||||
|
||||
import com.google.common.collect.BiMap;
|
||||
import com.google.common.collect.HashBiMap;
|
||||
|
@ -78,6 +74,6 @@ public class FluidRestrictionHandler
|
|||
{
|
||||
return true;
|
||||
}
|
||||
return FluidRestrictionHandler.hasRestrictedStack(color.ordinal()) && FluidRestrictionHandler.getStackForColor(color).isEqual(stack);
|
||||
return FluidRestrictionHandler.hasRestrictedStack(color.ordinal()) && FluidRestrictionHandler.getStackForColor(color).equals(stack);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ public abstract class NetworkTileEntities
|
|||
while (it.hasNext())
|
||||
{
|
||||
INetworkPart conductor = it.next();
|
||||
conductor.updateNetworkConnections();
|
||||
conductor.refresh();
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
|
@ -37,7 +37,7 @@ public class PlayerMsgHelper
|
|||
while (it.hasNext() && canSee)
|
||||
{
|
||||
EntityPlayer player = it.next();
|
||||
if (world.rayTraceBlocks(loc.toVec3(), new Vector3(player).add(new Vector3(0, player.getEyeHeight(), 0)).toVec3()) != null)
|
||||
if (world.rayTraceBlocks_do_do(loc.toVec3(), new Vector3(player).add(new Vector3(0, player.getEyeHeight(), 0)).toVec3(), canSee, canSee) != null)
|
||||
{
|
||||
it.remove();
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@ import java.awt.Color;
|
|||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.particle.EntityFX;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.resources.ResourceLocation;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.util.MathHelper;
|
||||
|
@ -12,6 +13,8 @@ import net.minecraft.world.World;
|
|||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
|
||||
import universalelectricity.core.vector.Vector3;
|
||||
import dark.core.DarkMain;
|
||||
|
||||
|
@ -145,7 +148,7 @@ public class FXBeam extends EntityFX
|
|||
op = 0.5F - (4 - (this.particleMaxAge - this.particleAge)) * 0.1F;
|
||||
}
|
||||
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(this.texture);
|
||||
FMLClientHandler.instance().getClient().renderEngine.func_110577_a(new ResourceLocation(this.texture));
|
||||
|
||||
GL11.glTexParameterf(3553, 10242, 10497.0F);
|
||||
GL11.glTexParameterf(3553, 10243, 10497.0F);
|
||||
|
@ -207,6 +210,6 @@ public class FXBeam extends EntityFX
|
|||
tessellator.startDrawingQuads();
|
||||
this.prevSize = size;
|
||||
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture("/particles.png");
|
||||
FMLClientHandler.instance().getClient().renderEngine.func_110577_a(new ResourceLocation("/particles.png"));
|
||||
}
|
||||
}
|
|
@ -7,8 +7,8 @@ import java.util.List;
|
|||
import java.util.Map.Entry;
|
||||
|
||||
import net.minecraft.client.gui.GuiButton;
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraft.client.gui.GuiTextField;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.client.resources.ResourceLocation;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
||||
|
@ -24,7 +24,7 @@ import dark.core.api.IScroll;
|
|||
import dark.library.access.UserAccess;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class GuiGlobalList extends GuiScreen implements IScroll
|
||||
public class GuiGlobalList extends GuiContainer implements IScroll
|
||||
{
|
||||
EntityPlayer player;
|
||||
private GuiTextField stringInput;
|
||||
|
@ -34,7 +34,7 @@ public class GuiGlobalList extends GuiScreen implements IScroll
|
|||
|
||||
public GuiGlobalList(EntityPlayer player)
|
||||
{
|
||||
super();
|
||||
super(new ContainerFake(null));
|
||||
this.player = player;
|
||||
}
|
||||
|
||||
|
@ -122,23 +122,23 @@ public class GuiGlobalList extends GuiScreen implements IScroll
|
|||
}
|
||||
|
||||
@Override
|
||||
protected void drawForegroundLayer(int x, int y, float var1)
|
||||
protected void drawGuiContainerForegroundLayer(int x, int y)
|
||||
{
|
||||
String title = "Global Access Interface";
|
||||
this.fontRenderer.drawString("\u00a77" + title, this.xSize / 2 - title.length() * 3, 4, 4210752);
|
||||
this.fontRenderer.drawString("\u00a77" + title, this.width / 2 - title.length() * 3, 4, 4210752);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void drawBackgroundLayer(int x, int y, float var1)
|
||||
protected void drawGuiContainerBackgroundLayer(float f, int i, int j)
|
||||
{
|
||||
ResourceLocation name = new ResourceLocation(DarkMain.GUI_DIRECTORY + ":gui_access_base.png");
|
||||
this.mc.renderEngine.func_110577_a(name);
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
|
||||
int containerWidth = (this.width - this.xSize) / 2;
|
||||
int containerHeight = (this.height - this.ySize) / 2;
|
||||
this.drawTexturedModalRect(containerWidth, containerHeight, 0, 0, this.xSize, this.ySize);
|
||||
int containerWidth = (this.width - this.width) / 2;
|
||||
int containerHeight = (this.height - this.height) / 2;
|
||||
this.drawTexturedModalRect(containerWidth, containerHeight, 0, 0, this.width, this.height);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ public class BlockMachine extends BlockAdvanced implements ITileEntityProvider
|
|||
public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)
|
||||
{
|
||||
super.breakBlock(par1World, par2, par3, par4, par5, par6);
|
||||
this.dropEntireInventory(par1World, par2, par3, par4, par5, par6);
|
||||
par1World.removeBlockTileEntity(par2, par3, par4);
|
||||
}
|
||||
|
||||
|
@ -44,5 +45,9 @@ public class BlockMachine extends BlockAdvanced implements ITileEntityProvider
|
|||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
public void dropEntireInventory(World par1World, int x, int y, int z, int par5, int par6)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -24,9 +24,9 @@ public abstract class TileEntityElectricMachine extends TileEntityAdvanced imple
|
|||
/** Remaining ticks of time to remain disabled */
|
||||
protected int ticksDisabled = 0;
|
||||
/** Max energy storage limit */
|
||||
protected int maxEnergy;
|
||||
protected float maxEnergy;
|
||||
/** Energy needed to run per tick regardless of function */
|
||||
protected int tickEnergy;
|
||||
protected float tickEnergy;
|
||||
|
||||
|
||||
/** Should this machine run without power */
|
||||
|
@ -36,10 +36,10 @@ public abstract class TileEntityElectricMachine extends TileEntityAdvanced imple
|
|||
private IPowerProvider powerProvider;
|
||||
|
||||
|
||||
public TileEntityElectricMachine(int maxEnergy, int tickEnergy)
|
||||
public TileEntityElectricMachine(float d, float d2)
|
||||
{
|
||||
this.maxEnergy = maxEnergy;
|
||||
this.tickEnergy = tickEnergy;
|
||||
this.maxEnergy = d;
|
||||
this.tickEnergy = d2;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -8,9 +8,9 @@ import dark.core.PowerSystems;
|
|||
|
||||
public class TileEntityRunnableMachine extends TileEntityElectricMachine
|
||||
{
|
||||
public TileEntityRunnableMachine(int tickEnergy)
|
||||
public TileEntityRunnableMachine(float d)
|
||||
{
|
||||
super(tickEnergy * 2, tickEnergy);
|
||||
super(d * 2, d);
|
||||
}
|
||||
|
||||
/** Forge Ore Directory name of the item to toggle power */
|
||||
|
|
Loading…
Reference in a new issue