java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.HotbarManager

public class HotbarManager extends Object
  • Field Details

    • HOTBARS_MAX

      public static final int HOTBARS_MAX
      See Also:
    • CODEC

      @Nonnull public static final BuilderCodec<HotbarManager> CODEC
    • MESSAGE_GENERAL_HOTBAR_INVALID_SLOT

      private static final Message MESSAGE_GENERAL_HOTBAR_INVALID_SLOT
    • MESSAGE_GENERAL_HOTBAR_INVALID_GAME_MODE

      private static final Message MESSAGE_GENERAL_HOTBAR_INVALID_GAME_MODE
    • savedHotbars

      @Nonnull private ItemContainer[] savedHotbars
    • currentHotbar

      private int currentHotbar
    • currentlyLoadingHotbar

      private boolean currentlyLoadingHotbar
  • Constructor Details

    • HotbarManager

      public HotbarManager()
  • Method Details

    • saveHotbar

      public void saveHotbar(@Nonnull Ref<EntityStore> playerRef, short hotbarIndex, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • loadHotbar

      public void loadHotbar(@Nonnull Ref<EntityStore> playerRef, short hotbarIndex, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • getCurrentHotbarIndex

      public int getCurrentHotbarIndex()
    • getIsCurrentlyLoadingHotbar

      public boolean getIsCurrentlyLoadingHotbar()