untested rework of dependent scoreboard source
Dieser Commit ist enthalten in:
Ursprung
17d8580d6e
Commit
60f93d0e3f
@ -25,7 +25,7 @@ public class SWScoreboard_12 {
|
||||
createPacket.getIntegers().write(0, 0);
|
||||
createPacket.getStrings().write(1, title);
|
||||
StructureModifier modifier = createPacket.getEnumModifier(IScoreboardCriteria.EnumScoreboardHealthDisplay.class, 0);
|
||||
modifier.write(0, modifier.getTarget());
|
||||
modifier.write(0, SWEnumScoreboardHealtyDisplay.INTEGER);
|
||||
|
||||
sendPacket(player, createPacket);
|
||||
}
|
||||
@ -46,5 +46,20 @@ public class SWScoreboard_12 {
|
||||
}
|
||||
}
|
||||
|
||||
static enum SWEnumScoreboardHealtyDisplay {
|
||||
INTEGER("integer"),
|
||||
HEARTS("hearts");
|
||||
|
||||
private String string;
|
||||
|
||||
private SWEnumScoreboardHealtyDisplay(String string) {
|
||||
this.string = string;
|
||||
}
|
||||
|
||||
public String getString() {
|
||||
return string;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren