HUDmmo.java cleanup (formatting stuff, comment removal)

This commit is contained in:
nossr50 2012-03-26 14:24:11 -07:00
parent 65e3384a96
commit ae8997b4f3
2 changed files with 3 additions and 14 deletions

View File

@ -18,7 +18,6 @@ import com.gmail.nossr50.spout.SpoutStuff;
public class HUDmmo { public class HUDmmo {
private int center_x = 427/2; private int center_x = 427/2;
// private int center_y = 240/2; //Any reason we can't just delete this?
private String playerName = null; private String playerName = null;
@ -42,14 +41,9 @@ public class HUDmmo {
* @param player Player whose HUD to initialize * @param player Player whose HUD to initialize
*/ */
public void initializeHUD(Player player) { public void initializeHUD(Player player) {
// PlayerProfile PP = Users.getProfile(player);
HUDType type = Users.getProfile(player).getHUDType(); HUDType type = Users.getProfile(player).getHUDType();
SpoutPlayer sPlayer = SpoutManager.getPlayer(player); SpoutPlayer sPlayer = SpoutManager.getPlayer(player);
// if (LoadProperties.partybar && PP.getPartyHUD()) {
// mmoHelper.initialize(sPlayer, plugin); //PARTY HUD
// }
switch (type) { switch (type) {
case RETRO: case RETRO:
initializeXpBarDisplayRetro(sPlayer); initializeXpBarDisplayRetro(sPlayer);
@ -106,7 +100,6 @@ public class HUDmmo {
*/ */
public void resetHUD() { public void resetHUD() {
SpoutPlayer sPlayer = SpoutStuff.getSpoutPlayer(playerName); SpoutPlayer sPlayer = SpoutStuff.getSpoutPlayer(playerName);
// PlayerProfile PP = Users.getProfile(sPlayer);
if (sPlayer != null) { if (sPlayer != null) {
sPlayer.getMainScreen().removeWidgets(plugin); sPlayer.getMainScreen().removeWidgets(plugin);
@ -117,10 +110,6 @@ public class HUDmmo {
xpbg = null; xpbg = null;
xpicon = null; xpicon = null;
// if (LoadProperties.partybar && PP.getPartyHUD()) {
// mmoHelper.initialize(sPlayer, plugin);
// }
sPlayer.getMainScreen().setDirty(true); sPlayer.getMainScreen().setDirty(true);
} }
} }
@ -294,7 +283,7 @@ public class HUDmmo {
SkillType theType = getType(PP); SkillType theType = getType(PP);
if (theType == null) { //Can this ever actually BE null? if (theType == null) { //Can this ever actually BE null? (Yes, it's null when the player has just logged in. It's not null when they gain XP in anything)
return; return;
} }
@ -320,7 +309,7 @@ public class HUDmmo {
SkillType theType = getType(PP); SkillType theType = getType(PP);
if (theType == null) { //Can this ever actually BE null? if (theType == null) { //Can this ever actually BE null? (Yes, it's null when the player has just logged in. It's not null when they gain XP in anything)
return; return;
} }