InventoryPacketHandler

public class InventoryPacketHandler implements SubPacketHandler

Class InventoryPacketHandler. Provides inventorypackethandler functionality for the Hytale server.

java.lang.Object > InventoryPacketHandler

Field Summary

playerRef

final PlayerRef playerRef

Field playerRef.

ref

final Ref ref

Field ref.

store

final Store store

Field store.

world

final World world

Field world.

playerComponent

final Player playerComponent

Field playerComponent.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

inventory

final Inventory inventory

Field inventory.

quantity

final int quantity

Field quantity.

itemStack

final ItemStack itemStack

Field itemStack.

transaction

final ItemStackTransaction transaction

Field transaction.

remainder

final ItemStack remainder

Field remainder.

sectionById

final ItemContainer sectionById

Field sectionById.

existing

final ItemStack existing

Field existing.

item

final Item item

Field item.

fStack

final ItemStack fStack

Field fStack.

slot

final byte slot

Field slot.

hotbar

final ItemContainer hotbar

Field hotbar.

stack

final ItemStack stack

Field stack.

set

final BlockGroup set

Field set.

desiredItem

final Item desiredItem

Field desiredItem.

currentIndex

final int currentIndex

Field currentIndex.

desiredIndex

final int desiredIndex

Field desiredIndex.

combinedInventory

final CombinedItemContainer combinedInventory

Field combinedInventory.

potentialSelector

final ItemStack potentialSelector

Field potentialSelector.

selectorTool

final BlockSelectorToolData selectorTool

Field selectorTool.

toolData

final BlockSelectorToolData toolData

Field toolData.

replacement

final ItemStack replacement

Field replacement.

soundSet

final ItemSoundSet soundSet

Field soundSet.

dragSound

final String dragSound

Field dragSound.

dragSoundIndex

final int dragSoundIndex

Field dragSoundIndex.

itemArmor

final ItemArmor itemArmor

Field itemArmor.

slotTransactions

final List slotTransactions

Field slotTransactions.

event

final DropItemEvent.PlayerRequest event

Field event.

itemId

final String itemId

Field itemId.

newSlot

final byte newSlot

Field newSlot.

inventorySectionId

final int inventorySectionId

Field inventorySectionId.

currentSlot

final byte currentSlot

Field currentSlot.

newSlot2

final byte newSlot2

Field newSlot2.

packetHandler

final PacketHandler packetHandler

Field packetHandler.

previousSlot

final byte previousSlot

Field previousSlot.

window

final Window window

Field window.

window2

final Window window2

Field window2.

window3

final Window window3

Field window3.

sortType

final SortType sortType

Field sortType.

window4

final Window window4

Field window4.

Method Detail

InventoryPacketHandler

public public InventoryPacketHandler (final IPacketHandler packetHandler)

Method InventoryPacketHandler.

Parameters:
final IPacketHandler packetHandler

registerHandlers

public void registerHandlers ()

Method registerHandlers.

handle

public void handle (@Nonnull final SetCreativeItem packet)

Method handle.

Parameters:
@Nonnull final SetCreativeItem packet

if

public else if (playerComponent.getGameMode()

Method if.

Parameters:
playerComponent.getGameMode( playerComponent.getGameMode(

ItemStack

public new ItemStack (set.get(desiredIndex)

Method ItemStack.

Parameters:
set.get(desiredIndex set.get(desiredIndex

SetActiveSlot

public new SetActiveSlot (inventorySectionId, newSlot2)

Method SetActiveSlot.

Parameters:
inventorySectionId inventorySectionId
newSlot2 newSlot2