mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 04:09:51 +00:00
Add a bit of javadoc
This commit is contained in:
1 parent
df132a0296
commit
7549eb90a7
1 file changed
+8
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user