Fixed style.
This commit is contained in:
parent
7f5d086696
commit
01273bd63c
7 changed files with 21 additions and 20 deletions
|
@ -107,7 +107,7 @@ public enum EnumColor {
|
||||||
0xe4e4e4};
|
0xe4e4e4};
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
private static IIcon brushIcons[] = new IIcon[16];
|
private static IIcon[] brushIcons = new IIcon[16];
|
||||||
|
|
||||||
public int getDarkHex() {
|
public int getDarkHex() {
|
||||||
return DARK_HEX[ordinal()];
|
return DARK_HEX[ordinal()];
|
||||||
|
|
|
@ -37,7 +37,7 @@ public class BlockZonePlan extends BlockBuildCraft {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
|
public TileEntity createNewTileEntity(World world, int meta) {
|
||||||
return new TileZonePlan();
|
return new TileZonePlan();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class ContainerZonePlan extends BuildCraftContainer {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canInteractWith(EntityPlayer p_75145_1_) {
|
public boolean canInteractWith(EntityPlayer player) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,9 +109,9 @@ public class ContainerZonePlan extends BuildCraftContainer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
r /= (blocksPerPixel * blocksPerPixel);
|
r /= blocksPerPixel * blocksPerPixel;
|
||||||
g /= (blocksPerPixel * blocksPerPixel);
|
g /= blocksPerPixel * blocksPerPixel;
|
||||||
b /= (blocksPerPixel * blocksPerPixel);
|
b /= blocksPerPixel * blocksPerPixel;
|
||||||
|
|
||||||
r /= 255F;
|
r /= 255F;
|
||||||
g /= 255F;
|
g /= 255F;
|
||||||
|
|
|
@ -28,23 +28,24 @@ import buildcraft.core.network.RPCHandler;
|
||||||
|
|
||||||
public class GuiZonePlan extends GuiAdvancedInterface {
|
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 mapWidth = 200;
|
||||||
private int mapHeight = 100;
|
private int mapHeight = 100;
|
||||||
|
|
||||||
private TileZonePlan zonePlan;
|
private TileZonePlan zonePlan;
|
||||||
|
|
||||||
private BCDynamicTexture newSelection;
|
private BCDynamicTexture newSelection;
|
||||||
private int selX1 = 0,
|
private int selX1 = 0;
|
||||||
selX2 = 0,
|
private int selX2 = 0;
|
||||||
selY1 = 0,
|
private int selY1 = 0;
|
||||||
selY2 = 0;
|
private int selY2 = 0;
|
||||||
|
|
||||||
private boolean inSelection = false;
|
private boolean inSelection = false;
|
||||||
|
|
||||||
private BCDynamicTexture currentSelection;
|
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 mapXMin = 0;
|
||||||
private int mapYMin = 0;
|
private int mapYMin = 0;
|
||||||
|
|
||||||
|
@ -360,9 +361,9 @@ public class GuiZonePlan extends GuiAdvancedInterface {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
r /= (zoomLevel * zoomLevel);
|
r /= zoomLevel * zoomLevel;
|
||||||
g /= (zoomLevel * zoomLevel);
|
g /= zoomLevel * zoomLevel;
|
||||||
b /= (zoomLevel * zoomLevel);
|
b /= zoomLevel * zoomLevel;
|
||||||
|
|
||||||
r /= 255F;
|
r /= 255F;
|
||||||
g /= 255F;
|
g /= 255F;
|
||||||
|
|
|
@ -53,8 +53,8 @@ public class TileZonePlan extends TileBuildCraft implements IInventory {
|
||||||
}
|
}
|
||||||
|
|
||||||
private int[] getCoords() {
|
private int[] getCoords() {
|
||||||
int chunkCenterX = (xCoord >> 4);
|
int chunkCenterX = xCoord >> 4;
|
||||||
int chunkCenterZ = (zCoord >> 4);
|
int chunkCenterZ = zCoord >> 4;
|
||||||
|
|
||||||
if (chunkIt == 0) {
|
if (chunkIt == 0) {
|
||||||
return new int[] {chunkCenterX, chunkCenterZ};
|
return new int[] {chunkCenterX, chunkCenterZ};
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class ChunkIndex {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return (x * 37 + z);
|
return x * 37 + z;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void writeToNBT(NBTTagCompound nbt) {
|
public void writeToNBT(NBTTagCompound nbt) {
|
||||||
|
|
|
@ -139,7 +139,7 @@ public class BlockBuildcraftFluid extends BlockFluidClassic {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MapColor getMapColor(int p_149728_1_) {
|
public MapColor getMapColor(int meta) {
|
||||||
return mapColor;
|
return mapColor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue