Merge pull request #652 from AbrarSyed/patch-2
remapped parameters and added ending newlines
This commit is contained in:
commit
4e8d5255ed
35 changed files with 55 additions and 55 deletions
|
@ -136,4 +136,4 @@ public class FMLConfigGuiFactory implements IModGuiFactory
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,13 +43,13 @@ public class GuiAccessDenied extends GuiScreen
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void drawScreen(int p_73863_1_, int p_73863_2_, float p_73863_3_)
|
public void drawScreen(int mouseX, int mouseY, float partialTicks)
|
||||||
{
|
{
|
||||||
this.drawDefaultBackground();
|
this.drawDefaultBackground();
|
||||||
int offset = Math.max(85 - 2 * 10, 10);
|
int offset = Math.max(85 - 2 * 10, 10);
|
||||||
this.drawCenteredString(this.fontRendererObj, "Forge Mod Loader could not connect to this server", this.width / 2, offset, 0xFFFFFF);
|
this.drawCenteredString(this.fontRendererObj, "Forge Mod Loader could not connect to this server", this.width / 2, offset, 0xFFFFFF);
|
||||||
offset += 10;
|
offset += 10;
|
||||||
this.drawCenteredString(this.fontRendererObj, String.format("The server %s has forbidden modded access", data.serverName), this.width / 2, offset, 0xFFFFFF);
|
this.drawCenteredString(this.fontRendererObj, String.format("The server %s has forbidden modded access", data.serverName), this.width / 2, offset, 0xFFFFFF);
|
||||||
super.drawScreen(p_73863_1_, p_73863_2_, p_73863_3_);
|
super.drawScreen(mouseX, mouseY, partialTicks);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,13 +43,13 @@ public class GuiBackupFailed extends GuiScreen
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void drawScreen(int p_73863_1_, int p_73863_2_, float p_73863_3_)
|
public void drawScreen(int mouseX, int mouseY, float partialTicks)
|
||||||
{
|
{
|
||||||
this.drawDefaultBackground();
|
this.drawDefaultBackground();
|
||||||
int offset = Math.max(85 - 2 * 10, 10);
|
int offset = Math.max(85 - 2 * 10, 10);
|
||||||
this.drawCenteredString(this.fontRendererObj, String.format("There was an error saving the archive %s", zipName.getName()), this.width / 2, offset, 0xFFFFFF);
|
this.drawCenteredString(this.fontRendererObj, String.format("There was an error saving the archive %s", zipName.getName()), this.width / 2, offset, 0xFFFFFF);
|
||||||
offset += 10;
|
offset += 10;
|
||||||
this.drawCenteredString(this.fontRendererObj, String.format("Please fix the problem and try again"), this.width / 2, offset, 0xFFFFFF);
|
this.drawCenteredString(this.fontRendererObj, String.format("Please fix the problem and try again"), this.width / 2, offset, 0xFFFFFF);
|
||||||
super.drawScreen(p_73863_1_, p_73863_2_, p_73863_3_);
|
super.drawScreen(mouseX, mouseY, partialTicks);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,9 +30,9 @@ public class GuiCustomModLoadingErrorScreen extends GuiErrorScreen
|
||||||
this.customException.initGui(this, fontRendererObj);
|
this.customException.initGui(this, fontRendererObj);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void drawScreen(int p_73863_1_, int p_73863_2_, float p_73863_3_)
|
public void drawScreen(int mouseX, int mouseY, float partialTicks)
|
||||||
{
|
{
|
||||||
this.drawDefaultBackground();
|
this.drawDefaultBackground();
|
||||||
this.customException.drawScreen(this, fontRendererObj, p_73863_1_, p_73863_2_, p_73863_3_);
|
this.customException.drawScreen(this, fontRendererObj, mouseX, mouseY, partialTicks);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ public class GuiDupesFound extends GuiErrorScreen
|
||||||
this.buttonList.clear();
|
this.buttonList.clear();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void drawScreen(int p_73863_1_, int p_73863_2_, float p_73863_3_)
|
public void drawScreen(int mouseX, int mouseY, float partialTicks)
|
||||||
{
|
{
|
||||||
this.drawDefaultBackground();
|
this.drawDefaultBackground();
|
||||||
int offset = Math.max(85 - dupes.dupes.size() * 10, 10);
|
int offset = Math.max(85 - dupes.dupes.size() * 10, 10);
|
||||||
|
|
|
@ -26,11 +26,11 @@ public class GuiIngameModOptions extends GuiScreen
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void actionPerformed(GuiButton p_146284_1_)
|
protected void actionPerformed(GuiButton button)
|
||||||
{
|
{
|
||||||
if (p_146284_1_.enabled)
|
if (button.enabled)
|
||||||
{
|
{
|
||||||
if (p_146284_1_.id == 200)
|
if (button.id == 200)
|
||||||
{
|
{
|
||||||
this.mc.gameSettings.saveOptions();
|
this.mc.gameSettings.saveOptions();
|
||||||
this.mc.displayGuiScreen(this.parentScreen);
|
this.mc.displayGuiScreen(this.parentScreen);
|
||||||
|
@ -39,13 +39,13 @@ public class GuiIngameModOptions extends GuiScreen
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawScreen(int p_73863_1_, int p_73863_2_, float p_73863_3_)
|
public void drawScreen(int mouseX, int mouseY, float partialTicks)
|
||||||
{
|
{
|
||||||
// force a non-transparent background
|
// force a non-transparent background
|
||||||
this.drawDefaultBackground();
|
this.drawDefaultBackground();
|
||||||
this.optionList.drawScreen(p_73863_1_, p_73863_2_, p_73863_3_);
|
this.optionList.drawScreen(mouseX, mouseY, partialTicks);
|
||||||
this.drawCenteredString(this.fontRendererObj, this.title, this.width / 2, 15, 0xFFFFFF);
|
this.drawCenteredString(this.fontRendererObj, this.title, this.width / 2, 15, 0xFFFFFF);
|
||||||
super.drawScreen(p_73863_1_, p_73863_2_, p_73863_3_);
|
super.drawScreen(mouseX, mouseY, partialTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
FontRenderer getFontRenderer() {
|
FontRenderer getFontRenderer() {
|
||||||
|
|
|
@ -35,7 +35,7 @@ public class GuiModsMissing extends GuiErrorScreen
|
||||||
this.buttonList.clear();
|
this.buttonList.clear();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void drawScreen(int p_73863_1_, int p_73863_2_, float p_73863_3_)
|
public void drawScreen(int mouseX, int mouseY, float partialTicks)
|
||||||
{
|
{
|
||||||
this.drawDefaultBackground();
|
this.drawDefaultBackground();
|
||||||
int offset = Math.max(85 - modsMissing.missingMods.size() * 10, 10);
|
int offset = Math.max(85 - modsMissing.missingMods.size() * 10, 10);
|
||||||
|
|
|
@ -43,7 +43,7 @@ public class GuiModsMissingForServer extends GuiScreen
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void drawScreen(int p_73863_1_, int p_73863_2_, float p_73863_3_)
|
public void drawScreen(int mouseX, int mouseY, float partialTicks)
|
||||||
{
|
{
|
||||||
this.drawDefaultBackground();
|
this.drawDefaultBackground();
|
||||||
int offset = Math.max(85 - modsMissing.missingMods.size() * 10, 10);
|
int offset = Math.max(85 - modsMissing.missingMods.size() * 10, 10);
|
||||||
|
@ -58,6 +58,6 @@ public class GuiModsMissingForServer extends GuiScreen
|
||||||
offset += 10;
|
offset += 10;
|
||||||
this.drawCenteredString(this.fontRendererObj, String.format("%s : %s", v.getLabel(), v.getRangeString()), this.width / 2, offset, 0xEEEEEE);
|
this.drawCenteredString(this.fontRendererObj, String.format("%s : %s", v.getLabel(), v.getRangeString()), this.width / 2, offset, 0xEEEEEE);
|
||||||
}
|
}
|
||||||
super.drawScreen(p_73863_1_, p_73863_2_, p_73863_3_);
|
super.drawScreen(mouseX, mouseY, partialTicks);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ public class GuiNotification extends GuiScreen
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawScreen(int p_73863_1_, int p_73863_2_, float p_73863_3_)
|
public void drawScreen(int mouseX, int mouseY, float partialTicks)
|
||||||
{
|
{
|
||||||
this.drawDefaultBackground();
|
this.drawDefaultBackground();
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ public class GuiNotification extends GuiScreen
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
super.drawScreen(p_73863_1_, p_73863_2_, p_73863_3_);
|
super.drawScreen(mouseX, mouseY, partialTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected final StartupQuery query;
|
protected final StartupQuery query;
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class GuiOldSaveLoadConfirm extends GuiYesNo implements GuiYesNoCallback
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawScreen(int p_73863_1_, int p_73863_2_, float p_73863_3_)
|
public void drawScreen(int mouseX, int mouseY, float partialTicks)
|
||||||
{
|
{
|
||||||
this.drawDefaultBackground();
|
this.drawDefaultBackground();
|
||||||
this.drawCenteredString(this.fontRendererObj, String.format("The world %s contains pre-update modding data", saveName), this.width / 2, 50, 16777215);
|
this.drawCenteredString(this.fontRendererObj, String.format("The world %s contains pre-update modding data", saveName), this.width / 2, 50, 16777215);
|
||||||
|
@ -44,18 +44,18 @@ public class GuiOldSaveLoadConfirm extends GuiYesNo implements GuiYesNoCallback
|
||||||
|
|
||||||
for (k = 0; k < this.buttonList.size(); ++k)
|
for (k = 0; k < this.buttonList.size(); ++k)
|
||||||
{
|
{
|
||||||
((GuiButton)this.buttonList.get(k)).drawButton(this.mc, p_73863_1_, p_73863_2_);
|
((GuiButton)this.buttonList.get(k)).drawButton(this.mc, mouseX, mouseY);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (k = 0; k < this.labelList.size(); ++k)
|
for (k = 0; k < this.labelList.size(); ++k)
|
||||||
{
|
{
|
||||||
((GuiLabel)this.labelList.get(k)).drawLabel(this.mc, p_73863_1_, p_73863_2_);
|
((GuiLabel)this.labelList.get(k)).drawLabel(this.mc, mouseX, mouseY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void actionPerformed(GuiButton p_146284_1_)
|
protected void actionPerformed(GuiButton button)
|
||||||
{
|
{
|
||||||
if (p_146284_1_.id == 1)
|
if (button.id == 1)
|
||||||
{
|
{
|
||||||
ObfuscationReflectionHelper.setPrivateValue(GuiSelectWorld.class, (GuiSelectWorld)parentScreen, false, "field_"+"146634_i");
|
ObfuscationReflectionHelper.setPrivateValue(GuiSelectWorld.class, (GuiSelectWorld)parentScreen, false, "field_"+"146634_i");
|
||||||
FMLClientHandler.instance().showGuiScreen(parent);
|
FMLClientHandler.instance().showGuiScreen(parent);
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class GuiSortingProblem extends GuiScreen {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawScreen(int p_73863_1_, int p_73863_2_, float p_73863_3_)
|
public void drawScreen(int mouseX, int mouseY, float partialTicks)
|
||||||
{
|
{
|
||||||
this.drawDefaultBackground();
|
this.drawDefaultBackground();
|
||||||
int offset = Math.max(85 - (failedList.getVisitedNodes().size() + 3) * 10, 10);
|
int offset = Math.max(85 - (failedList.getVisitedNodes().size() + 3) * 10, 10);
|
||||||
|
|
|
@ -31,7 +31,7 @@ public class GuiWrongMinecraft extends GuiErrorScreen
|
||||||
this.buttonList.clear();
|
this.buttonList.clear();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void drawScreen(int p_73863_1_, int p_73863_2_, float p_73863_3_)
|
public void drawScreen(int mouseX, int mouseY, float partialTicks)
|
||||||
{
|
{
|
||||||
this.drawDefaultBackground();
|
this.drawDefaultBackground();
|
||||||
int offset = 75;
|
int offset = 75;
|
||||||
|
|
|
@ -21,4 +21,4 @@ public enum ConfigGuiType
|
||||||
COLOR,
|
COLOR,
|
||||||
MOD_ID,
|
MOD_ID,
|
||||||
CONFIG_CATEGORY;
|
CONFIG_CATEGORY;
|
||||||
}
|
}
|
||||||
|
|
|
@ -414,4 +414,4 @@ public class DummyConfigElement implements IConfigElement
|
||||||
{
|
{
|
||||||
return maxValue;
|
return maxValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,4 +74,4 @@ public class GuiButtonExt extends GuiButton
|
||||||
this.drawCenteredString(mc.fontRendererObj, buttonText, this.xPosition + this.width / 2, this.yPosition + (this.height - 8) / 2, color);
|
this.drawCenteredString(mc.fontRendererObj, buttonText, this.xPosition + this.width / 2, this.yPosition + (this.height - 8) / 2, color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,9 +61,9 @@ public class GuiCheckBox extends GuiButton
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mousePressed(Minecraft p_146116_1_, int p_146116_2_, int p_146116_3_)
|
public boolean mousePressed(Minecraft mc, int mouseX, int mouseY)
|
||||||
{
|
{
|
||||||
if (this.enabled && this.visible && p_146116_2_ >= this.xPosition && p_146116_3_ >= this.yPosition && p_146116_2_ < this.xPosition + this.width && p_146116_3_ < this.yPosition + this.height)
|
if (this.enabled && this.visible && mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + this.width && mouseY < this.yPosition + this.height)
|
||||||
{
|
{
|
||||||
this.isChecked = !this.isChecked;
|
this.isChecked = !this.isChecked;
|
||||||
return true;
|
return true;
|
||||||
|
@ -81,4 +81,4 @@ public class GuiCheckBox extends GuiButton
|
||||||
{
|
{
|
||||||
this.isChecked = isChecked;
|
this.isChecked = isChecked;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -349,4 +349,4 @@ public class GuiConfig extends GuiScreen
|
||||||
{
|
{
|
||||||
this.drawHoveringText(stringList, x, y);
|
this.drawHoveringText(stringList, x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1765,4 +1765,4 @@ public class GuiConfigEntries extends GuiListExtended
|
||||||
*/
|
*/
|
||||||
public void onGuiClosed();
|
public void onGuiClosed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -211,4 +211,4 @@ public class GuiEditArray extends GuiScreen
|
||||||
{
|
{
|
||||||
this.drawHoveringText(stringList, x, y);
|
this.drawHoveringText(stringList, x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -671,4 +671,4 @@ public class GuiEditArrayEntries extends GuiListExtended
|
||||||
|
|
||||||
public Object getValue();
|
public Object getValue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,4 +179,4 @@ public class GuiSelectString extends GuiScreen
|
||||||
{
|
{
|
||||||
this.drawHoveringText(stringList, x, y);
|
this.drawHoveringText(stringList, x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -195,4 +195,4 @@ public class GuiSelectStringEntries extends GuiListExtended
|
||||||
{
|
{
|
||||||
public Object getValue();
|
public Object getValue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,4 +80,4 @@ public class GuiUnicodeGlyphButton extends GuiButtonExt
|
||||||
this.yPosition + (this.height - 8) / 2, color);
|
this.yPosition + (this.height - 8) / 2, color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,4 +193,4 @@ public class GuiUtils
|
||||||
tessellator.draw();
|
tessellator.draw();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,4 +93,4 @@ public class HoverChecker
|
||||||
{
|
{
|
||||||
hoverStart = -1;
|
hoverStart = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,4 +167,4 @@ public interface IConfigElement
|
||||||
* [Property] Gets a Pattern object used in String property input validation.
|
* [Property] Gets a Pattern object used in String property input validation.
|
||||||
*/
|
*/
|
||||||
public Pattern getValidationPattern();
|
public Pattern getValidationPattern();
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,4 +82,4 @@ public class ConfigChangedEvent extends Event
|
||||||
super(modID, configID, isWorldRunning, requiresMcRestart);
|
super(modID, configID, isWorldRunning, requiresMcRestart);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -981,4 +981,4 @@ public class Loader
|
||||||
FMLLog.log(Level.INFO, e, "An error occurred writing the fml mod states file, your disabled change won't persist");
|
FMLLog.log(Level.INFO, e, "An error occurred writing the fml mod states file, your disabled change won't persist");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -201,4 +201,4 @@ public class FMLMissingMappingsEvent extends FMLEvent {
|
||||||
{
|
{
|
||||||
return ImmutableList.copyOf(missing.values());
|
return ImmutableList.copyOf(missing.values());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,4 +49,4 @@ public class FMLModIdMappingEvent extends FMLEvent {
|
||||||
});
|
});
|
||||||
remappedIds = ImmutableList.copyOf(remappings);
|
remappedIds = ImmutableList.copyOf(remappings);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,4 +29,4 @@ public final class TerminalTweaker implements ITweaker {
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -564,9 +564,9 @@ public class NetworkDispatcher extends SimpleChannelInboundHandler<Packet> imple
|
||||||
FMLLog.fine("Received override dimension %d", overrideDim);
|
FMLLog.fine("Received override dimension %d", overrideDim);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getOverrideDimension(S01PacketJoinGame p_147282_1_) {
|
public int getOverrideDimension(S01PacketJoinGame packetIn) {
|
||||||
FMLLog.fine("Overriding dimension: using %d", this.overrideLoginDim);
|
FMLLog.fine("Overriding dimension: using %d", this.overrideLoginDim);
|
||||||
return this.overrideLoginDim != 0 ? this.overrideLoginDim : p_147282_1_.getDimension();
|
return this.overrideLoginDim != 0 ? this.overrideLoginDim : packetIn.getDimension();
|
||||||
}
|
}
|
||||||
|
|
||||||
private class MultiPartCustomPayload extends S3FPacketCustomPayload
|
private class MultiPartCustomPayload extends S3FPacketCustomPayload
|
||||||
|
|
|
@ -64,9 +64,9 @@ public class FMLNetworkHandler
|
||||||
dispatcher.serverToClientHandshake(player);
|
dispatcher.serverToClientHandshake(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void fmlClientHandshake(NetworkManager field_147393_d)
|
public static void fmlClientHandshake(NetworkManager networkManager)
|
||||||
{
|
{
|
||||||
NetworkDispatcher dispatcher = NetworkDispatcher.allocAndSet(field_147393_d);
|
NetworkDispatcher dispatcher = NetworkDispatcher.allocAndSet(networkManager);
|
||||||
dispatcher.clientToServerHandshake();
|
dispatcher.clientToServerHandshake();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1112,4 +1112,4 @@ public class GameData {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,15 +154,15 @@ public class LanguageRegistry
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void mergeLanguageTable(@SuppressWarnings("rawtypes") Map field_135032_a, String lang)
|
public void mergeLanguageTable(@SuppressWarnings("rawtypes") Map properties, String lang)
|
||||||
{
|
{
|
||||||
Properties langPack=modLanguageData.get(lang);
|
Properties langPack=modLanguageData.get(lang);
|
||||||
if (langPack!=null) {
|
if (langPack!=null) {
|
||||||
mergeWithoutOverwrite(langPack, field_135032_a);
|
mergeWithoutOverwrite(langPack, properties);
|
||||||
}
|
}
|
||||||
Properties usPack=modLanguageData.get("en_US");
|
Properties usPack=modLanguageData.get("en_US");
|
||||||
if (usPack!=null) {
|
if (usPack!=null) {
|
||||||
mergeWithoutOverwrite(usPack, field_135032_a);
|
mergeWithoutOverwrite(usPack, properties);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue