mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 06:53:20 +00:00
Update mappings to 20151122.
This commit is contained in:
1 parent
84c3ef0f5c
commit
68dfcccd57
15 files changed
+65
-65
No files matched your search
@@ -57,7 +57,7 @@ public class ClientCommandHandler extends CommandHandler
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (icommand.canCommandSenderUse(sender))
|
||||
if (icommand.canCommandSenderUseCommand(sender))
|
||||
{
|
||||
CommandEvent event = new CommandEvent(icommand, sender, args);
|
||||
if (MinecraftForge.EVENT_BUS.post(event))
|
||||
@@ -69,7 +69,7 @@ public class ClientCommandHandler extends CommandHandler
|
||||
return 0;
|
||||
}
|
||||
|
||||
icommand.execute(sender, args);
|
||||
icommand.processCommand(sender, args);
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -113,7 +113,7 @@ public class GuiIngameForge extends GuiIngame
|
||||
|
||||
if (Minecraft.isFancyGraphicsEnabled())
|
||||
{
|
||||
func_180480_a(mc.thePlayer.getBrightness(partialTicks), res);
|
||||
renderVignette(mc.thePlayer.getBrightness(partialTicks), res);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -163,16 +163,16 @@ public class GuiIngameForge extends GuiIngame
|
||||
|
||||
Scoreboard scoreboard = this.mc.theWorld.getScoreboard();
|
||||
ScoreObjective objective = null;
|
||||
ScorePlayerTeam scoreplayerteam = scoreboard.getPlayersTeam(mc.thePlayer.getName());
|
||||
ScorePlayerTeam scoreplayerteam = scoreboard.getPlayersTeam(mc.thePlayer.getCommandSenderName());
|
||||
if (scoreplayerteam != null)
|
||||
{
|
||||
int slot = scoreplayerteam.func_178775_l().getColorIndex();
|
||||
int slot = scoreplayerteam.getChatFormat().getColorIndex();
|
||||
if (slot >= 0) objective = scoreboard.getObjectiveInDisplaySlot(3 + slot);
|
||||
}
|
||||
ScoreObjective scoreobjective1 = objective != null ? objective : scoreboard.getObjectiveInDisplaySlot(1);
|
||||
if (renderObjective && scoreobjective1 != null)
|
||||
{
|
||||
this.func_180475_a(scoreobjective1, res);
|
||||
this.renderScoreboard(scoreobjective1, res);
|
||||
}
|
||||
|
||||
GlStateManager.enableBlend();
|
||||
@@ -234,7 +234,7 @@ public class GuiIngameForge extends GuiIngame
|
||||
{
|
||||
if (itemstack.getItem() == Item.getItemFromBlock(Blocks.pumpkin))
|
||||
{
|
||||
func_180476_e(res);
|
||||
renderPumpkinOverlay(res);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -345,28 +345,28 @@ public class GuiIngameForge extends GuiIngame
|
||||
|
||||
EntityPlayer player = (EntityPlayer)this.mc.getRenderViewEntity();
|
||||
int health = MathHelper.ceiling_float_int(player.getHealth());
|
||||
boolean highlight = field_175191_F > (long)updateCounter && (field_175191_F - (long)updateCounter) / 3L %2L == 1L;
|
||||
boolean highlight = healthUpdateCounter > (long)updateCounter && (healthUpdateCounter - (long)updateCounter) / 3L %2L == 1L;
|
||||
|
||||
if (health < this.field_175194_C && player.hurtResistantTime > 0)
|
||||
if (health < this.playerHealth && player.hurtResistantTime > 0)
|
||||
{
|
||||
this.lastSystemTime = Minecraft.getSystemTime();
|
||||
this.field_175191_F = (long)(this.updateCounter + 20);
|
||||
this.healthUpdateCounter = (long)(this.updateCounter + 20);
|
||||
}
|
||||
else if (health > this.field_175194_C && player.hurtResistantTime > 0)
|
||||
else if (health > this.playerHealth && player.hurtResistantTime > 0)
|
||||
{
|
||||
this.lastSystemTime = Minecraft.getSystemTime();
|
||||
this.field_175191_F = (long)(this.updateCounter + 10);
|
||||
this.healthUpdateCounter = (long)(this.updateCounter + 10);
|
||||
}
|
||||
|
||||
if (Minecraft.getSystemTime() - this.lastSystemTime > 1000L)
|
||||
{
|
||||
this.field_175194_C = health;
|
||||
this.field_175189_D = health;
|
||||
this.playerHealth = health;
|
||||
this.lastPlayerHealth = health;
|
||||
this.lastSystemTime = Minecraft.getSystemTime();
|
||||
}
|
||||
|
||||
this.field_175194_C = health;
|
||||
int healthLast = this.field_175189_D;
|
||||
this.playerHealth = health;
|
||||
int healthLast = this.lastPlayerHealth;
|
||||
|
||||
IAttributeInstance attrMaxHealth = player.getEntityAttribute(SharedMonsterAttributes.maxHealth);
|
||||
float healthMax = (float)attrMaxHealth.getAttributeValue();
|
||||
@@ -748,11 +748,11 @@ public class GuiIngameForge extends GuiIngame
|
||||
GlStateManager.pushMatrix();
|
||||
GlStateManager.scale(4.0F, 4.0F, 4.0F);
|
||||
int l = opacity << 24 & -16777216;
|
||||
this.func_175179_f().drawString(this.field_175201_x, (float)(-this.func_175179_f().getStringWidth(this.field_175201_x) / 2), -10.0F, 16777215 | l, true);
|
||||
this.getFontRenderer().drawString(this.field_175201_x, (float)(-this.getFontRenderer().getStringWidth(this.field_175201_x) / 2), -10.0F, 16777215 | l, true);
|
||||
GlStateManager.popMatrix();
|
||||
GlStateManager.pushMatrix();
|
||||
GlStateManager.scale(2.0F, 2.0F, 2.0F);
|
||||
this.func_175179_f().drawString(this.field_175200_y, (float)(-this.func_175179_f().getStringWidth(this.field_175200_y) / 2), 5.0F, 16777215 | l, true);
|
||||
this.getFontRenderer().drawString(this.field_175200_y, (float)(-this.getFontRenderer().getStringWidth(this.field_175200_y) / 2), 5.0F, 16777215 | l, true);
|
||||
GlStateManager.popMatrix();
|
||||
GlStateManager.disableBlend();
|
||||
GlStateManager.popMatrix();
|
||||
@@ -784,16 +784,16 @@ public class GuiIngameForge extends GuiIngame
|
||||
ScoreObjective scoreobjective = this.mc.theWorld.getScoreboard().getObjectiveInDisplaySlot(0);
|
||||
NetHandlerPlayClient handler = mc.thePlayer.sendQueue;
|
||||
|
||||
if (mc.gameSettings.keyBindPlayerList.isKeyDown() && (!mc.isIntegratedServerRunning() || handler.func_175106_d().size() > 1 || scoreobjective != null))
|
||||
if (mc.gameSettings.keyBindPlayerList.isKeyDown() && (!mc.isIntegratedServerRunning() || handler.getPlayerInfoMap().size() > 1 || scoreobjective != null))
|
||||
{
|
||||
this.overlayPlayerList.func_175246_a(true);
|
||||
this.overlayPlayerList.updatePlayerList(true);
|
||||
if (pre(PLAYER_LIST)) return;
|
||||
this.overlayPlayerList.func_175249_a(width, this.mc.theWorld.getScoreboard(), scoreobjective);
|
||||
this.overlayPlayerList.renderPlayerlist(width, this.mc.theWorld.getScoreboard(), scoreobjective);
|
||||
post(PLAYER_LIST);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.overlayPlayerList.func_175246_a(false);
|
||||
this.overlayPlayerList.updatePlayerList(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ public class ForgeBlockStateV1 extends Marker
|
||||
{
|
||||
JsonObject json = element.getAsJsonObject();
|
||||
ForgeBlockStateV1 ret = new ForgeBlockStateV1();
|
||||
ret.forge_marker = JsonUtils.getJsonObjectIntegerFieldValue(json, "forge_marker");
|
||||
ret.forge_marker = JsonUtils.getInt(json, "forge_marker");
|
||||
|
||||
if (json.has("defaults")) // Load defaults Variant.
|
||||
{
|
||||
@@ -146,13 +146,13 @@ public class ForgeBlockStateV1 extends Marker
|
||||
part.state = state;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Iterator<List<Variant>> iter = v.submodels.values().iterator();
|
||||
|
||||
|
||||
while (iter.hasNext())
|
||||
{
|
||||
List<Variant> submodel = iter.next();
|
||||
|
||||
|
||||
if (submodel == null)
|
||||
iter.remove();
|
||||
}
|
||||
@@ -430,7 +430,7 @@ public class ForgeBlockStateV1 extends Marker
|
||||
if (json.get("model").isJsonNull())
|
||||
ret.model = null; // Allow overriding base model to remove it from a state.
|
||||
else
|
||||
ret.model = getBlockLocation(JsonUtils.getJsonObjectStringFieldValue(json, "model"));
|
||||
ret.model = getBlockLocation(JsonUtils.getString(json, "model"));
|
||||
ret.modelSet = true;
|
||||
}
|
||||
|
||||
@@ -447,8 +447,8 @@ public class ForgeBlockStateV1 extends Marker
|
||||
|
||||
if (json.has("x") || json.has("y"))
|
||||
{ // Load rotation values.
|
||||
int x = JsonUtils.getJsonObjectIntegerFieldValueOrDefault(json, "x", 0);
|
||||
int y = JsonUtils.getJsonObjectIntegerFieldValueOrDefault(json, "y", 0);
|
||||
int x = JsonUtils.getInt(json, "x", 0);
|
||||
int y = JsonUtils.getInt(json, "y", 0);
|
||||
ret.state = Optional.<IModelState>of(new TRSRTransformation(ModelRotation.getModelRotation(x, y)));
|
||||
if (!ret.state.isPresent())
|
||||
throw new JsonParseException("Invalid BlockModelRotation x: " + x + " y: " + y);
|
||||
@@ -589,12 +589,12 @@ public class ForgeBlockStateV1 extends Marker
|
||||
|
||||
if (json.has("uvlock"))
|
||||
{ // Load uvlock.
|
||||
ret.uvLock = Optional.of(JsonUtils.getJsonObjectBooleanFieldValue(json, "uvlock"));
|
||||
ret.uvLock = Optional.of(JsonUtils.getBoolean(json, "uvlock"));
|
||||
}
|
||||
|
||||
if (json.has("weight"))
|
||||
{ // Load weight.
|
||||
ret.weight = Optional.of(JsonUtils.getJsonObjectIntegerFieldValue(json, "weight"));
|
||||
ret.weight = Optional.of(JsonUtils.getInt(json, "weight"));
|
||||
}
|
||||
|
||||
if (json.has("submodel"))
|
||||
|
||||
Reference in new issue
Block a user