public class HotbarManager
Class HotbarManager. Provides hotbarmanager functionality for the Hytale server.
java.lang.Object > HotbarManager
Field Summary
savedHotbars
private
ItemContainer[]
savedHotbars
Field savedHotbars.
currentHotbar
private
int
currentHotbar
Field currentHotbar.
currentlyLoadingHotbar
private
boolean
currentlyLoadingHotbar
Field currentlyLoadingHotbar.
playerRefComponent
final
PlayerRef
playerRefComponent
Field playerRefComponent.
playerComponent
final
Player
playerComponent
Field playerComponent.
hotbar
final
ItemContainer
hotbar
Field hotbar.
clone
final
ItemContainer
clone
Field clone.
savedHotbar
final
ItemContainer
savedHotbar
Field savedHotbar.
obj
final
ItemContainer
obj
Field obj.
Method Detail
HotbarManager
public
public
HotbarManager
()
Method HotbarManager.
saveHotbar
public
void
saveHotbar
(@Nonnull final Ref playerRef, final short hotbarIndex, @Nonnull final ComponentAccessor componentAccessor)
Method saveHotbar.
- Parameters:
@Nonnull final RefplayerReffinal shorthotbarIndex@Nonnull final ComponentAccessorcomponentAccessor
loadHotbar
public
void
loadHotbar
(@Nonnull final Ref playerRef, final short hotbarIndex, @Nonnull final ComponentAccessor componentAccessor)
Method loadHotbar.
- Parameters:
@Nonnull final RefplayerReffinal shorthotbarIndex@Nonnull final ComponentAccessorcomponentAccessor
getCurrentHotbarIndex
public
int
getCurrentHotbarIndex
()
Method getCurrentHotbarIndex.
getIsCurrentlyLoadingHotbar
public
boolean
getIsCurrentlyLoadingHotbar
()
Method getIsCurrentlyLoadingHotbar.
KeyedCodec
public
new
KeyedCodec
("CurrentHotbar", Codec.INTEGER)
Method KeyedCodec.
- Parameters:
"CurrentHotbar""CurrentHotbar"Codec.INTEGERCodec.INTEGER