Class HotbarManager
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.HotbarManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<HotbarManager> private intprivate booleanstatic final intprivate static final Messageprivate static final Messageprivate ItemContainer[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanvoidloadHotbar(Ref<EntityStore> playerRef, short hotbarIndex, ComponentAccessor<EntityStore> componentAccessor) voidsaveHotbar(Ref<EntityStore> playerRef, short hotbarIndex, ComponentAccessor<EntityStore> componentAccessor)
-
Field Details
-
HOTBARS_MAX
public static final int HOTBARS_MAX- See Also:
-
CODEC
-
MESSAGE_GENERAL_HOTBAR_INVALID_SLOT
-
MESSAGE_GENERAL_HOTBAR_INVALID_GAME_MODE
-
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()
-