From 7549eb90a71383845aec9a9366244e565579fe91 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 5 Sep 2013 08:22:28 -0400 Subject: [PATCH] Add a bit of javadoc --- .../net/minecraft/entity/player/EntityPlayer.java.patch | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/entity/player/EntityPlayer.java.patch b/patches/minecraft/net/minecraft/entity/player/EntityPlayer.java.patch index f535ef6990..168d0194ae 100644 --- a/patches/minecraft/net/minecraft/entity/player/EntityPlayer.java.patch +++ b/patches/minecraft/net/minecraft/entity/player/EntityPlayer.java.patch @@ -569,7 +569,7 @@ } public void setAbsorptionAmount(float par1) -@@ -2267,4 +2471,32 @@ +@@ -2267,4 +2471,39 @@ { FMLNetworkHandler.openGui(this, mod, modGuiId, world, x, y, z); } @@ -588,6 +588,10 @@ + return 0.12F; + } + ++ /** ++ * Get the currently computed display name, cached for efficiency. ++ * @return the current display name ++ */ + public String getDisplayName() + { + if(this.displayname == null) @@ -597,6 +601,9 @@ + return this.displayname; + } + ++ /** ++ * Force the displayed name to refresh ++ */ + public void refreshDisplayName() + { + this.displayname = ForgeEventFactory.getPlayerDisplayName(this, this.username);