HyCodeYourTale
classpublicPriority 1

HotbarManager

com.hypixel.hytale.server.core.entity.entities.player.HotbarManager

4

Methods

4

Public Methods

3

Fields

1

Constructors

Constants

BuilderCodec<HotbarManager>CODEC= BuilderCodec.builder(HotbarManager.class, HotbarManager::new) .append( new KeyedCo...
intHOTBARS_MAX= 10
MessageMESSAGE_GENERAL_HOTBAR_INVALID_GAME_MODE= Message.translation("server.general.hotbar.invalidGameMode")
MessageMESSAGE_GENERAL_HOTBAR_INVALID_SLOT= Message.translation("server.general.hotbar.invalidSlot")

Constructors

public
HotbarManager()

Methods

Public Methods (4)

public
int getCurrentHotbarIndex()
public
boolean getIsCurrentlyLoadingHotbar()
public
void loadHotbar(Ref<EntityStore> playerRef, short hotbarIndex, ComponentAccessor<EntityStore> componentAccessor)
public
void saveHotbar(Ref<EntityStore> playerRef, short hotbarIndex, ComponentAccessor<EntityStore> componentAccessor)

Fields

Private/Package Fields (3)

privateint currentHotbar
privateboolean currentlyLoadingHotbar
privateItemContainer[] savedHotbars

Related Classes