Create Ability Hud Editor and Remove Ability Wheel.

This commit is contained in:
Kam committed 2026-02-20 01:59:01 -05:00
1 parent 8f76e007e4
commit fc8e2e9e7f
32 files changed
+3057 -40

No files matched your search

@@ -65,6 +65,7 @@ public class PlayerData implements IExtendedEntityProperties, IPlayerData {
public PlayerTradeData tradeData = new PlayerTradeData(this);
public PlayerAbilityData abilityData = new PlayerAbilityData(this);
public PlayerAbilityHotbarData hotbarData = new PlayerAbilityHotbarData();
public ActionManager actionManager = new ActionManager();
public PlayerDataScript scriptData;
@@ -119,6 +120,9 @@ public class PlayerData implements IExtendedEntityProperties, IPlayerData {
// Sync player ability data to client
abilityData.syncToClient();
// Sync hotbar data to client
hotbarData.syncToClient(player);
}
public void onLogout() {
@@ -151,6 +155,7 @@ public class PlayerData implements IExtendedEntityProperties, IPlayerData {
magicData.readToNBT(data);
tradeData.readFromNBT(data);
abilityData.readFromNBT(data);
hotbarData.readFromNBT(data);
if (player != null) {
playername = player.getCommandSenderName();
@@ -195,6 +200,7 @@ public class PlayerData implements IExtendedEntityProperties, IPlayerData {
magicData.writeToNBT(compound);
tradeData.writeToNBT(compound);
abilityData.writeToNBT(compound);
hotbarData.writeToNBT(compound);
compound.setString("PlayerName", playername);
compound.setString("UUID", uuid);