Fixed style.

This commit is contained in:
SpaceToad 2014-07-22 19:52:10 +02:00
parent 7f5d086696
commit 01273bd63c
7 changed files with 21 additions and 20 deletions

View file

@ -107,7 +107,7 @@ public enum EnumColor {
0xe4e4e4};
@SideOnly(Side.CLIENT)
private static IIcon brushIcons[] = new IIcon[16];
private static IIcon[] brushIcons = new IIcon[16];
public int getDarkHex() {
return DARK_HEX[ordinal()];

View file

@ -37,7 +37,7 @@ public class BlockZonePlan extends BlockBuildCraft {
}
@Override
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
public TileEntity createNewTileEntity(World world, int meta) {
return new TileZonePlan();
}

View file

@ -51,7 +51,7 @@ public class ContainerZonePlan extends BuildCraftContainer {
}
@Override
public boolean canInteractWith(EntityPlayer p_75145_1_) {
public boolean canInteractWith(EntityPlayer player) {
return true;
}
@ -109,9 +109,9 @@ public class ContainerZonePlan extends BuildCraftContainer {
}
}
r /= (blocksPerPixel * blocksPerPixel);
g /= (blocksPerPixel * blocksPerPixel);
b /= (blocksPerPixel * blocksPerPixel);
r /= blocksPerPixel * blocksPerPixel;
g /= blocksPerPixel * blocksPerPixel;
b /= blocksPerPixel * blocksPerPixel;
r /= 255F;
g /= 255F;

View file

@ -28,23 +28,24 @@ import buildcraft.core.network.RPCHandler;
public class GuiZonePlan extends GuiAdvancedInterface {
private static final ResourceLocation TMP_TEXTURE = new ResourceLocation("buildcraft",
DefaultProps.TEXTURE_PATH_GUI + "/map_gui.png");
private int mapWidth = 200;
private int mapHeight = 100;
private TileZonePlan zonePlan;
private BCDynamicTexture newSelection;
private int selX1 = 0,
selX2 = 0,
selY1 = 0,
selY2 = 0;
private int selX1 = 0;
private int selX2 = 0;
private int selY1 = 0;
private int selY2 = 0;
private boolean inSelection = false;
private BCDynamicTexture currentSelection;
private static final ResourceLocation TMP_TEXTURE = new ResourceLocation("buildcraft",
DefaultProps.TEXTURE_PATH_GUI + "/map_gui.png");
private int mapXMin = 0;
private int mapYMin = 0;
@ -360,9 +361,9 @@ public class GuiZonePlan extends GuiAdvancedInterface {
}
}
r /= (zoomLevel * zoomLevel);
g /= (zoomLevel * zoomLevel);
b /= (zoomLevel * zoomLevel);
r /= zoomLevel * zoomLevel;
g /= zoomLevel * zoomLevel;
b /= zoomLevel * zoomLevel;
r /= 255F;
g /= 255F;

View file

@ -53,8 +53,8 @@ public class TileZonePlan extends TileBuildCraft implements IInventory {
}
private int[] getCoords() {
int chunkCenterX = (xCoord >> 4);
int chunkCenterZ = (zCoord >> 4);
int chunkCenterX = xCoord >> 4;
int chunkCenterZ = zCoord >> 4;
if (chunkIt == 0) {
return new int[] {chunkCenterX, chunkCenterZ};

View file

@ -40,7 +40,7 @@ public class ChunkIndex {
@Override
public int hashCode() {
return (x * 37 + z);
return x * 37 + z;
}
public void writeToNBT(NBTTagCompound nbt) {

View file

@ -139,7 +139,7 @@ public class BlockBuildcraftFluid extends BlockFluidClassic {
}
@Override
public MapColor getMapColor(int p_149728_1_) {
public MapColor getMapColor(int meta) {
return mapColor;
}
}