EmptyItemContainer

public class EmptyItemContainer extends ItemContainer

Class EmptyItemContainer. Provides emptyitemcontainer functionality for the Hytale server.

java.lang.Object > ItemContainer > EmptyItemContainer

Field Summary

No fields documented.

Method Detail

EmptyItemContainer

public protected EmptyItemContainer ()

Method EmptyItemContainer.

getCapacity

public short getCapacity ()

Method getCapacity.

clear

public ClearTransaction clear ()

Method clear.

forEach

public void forEach (final ShortObjectConsumer action)

Method forEach.

Parameters:
final ShortObjectConsumer action

readAction

protected V readAction (@Nonnull final Supplier action)

Method readAction.

Parameters:
@Nonnull final Supplier action

writeAction

protected V writeAction (@Nonnull final Supplier action)

Method writeAction.

Parameters:
@Nonnull final Supplier action

internal_clear

protected ClearTransaction internal_clear ()

Method internal_clear.

internal_getSlot

protected ItemStack internal_getSlot (final short slot)

Method internal_getSlot.

Parameters:
final short slot

UnsupportedOperationException

public new UnsupportedOperationException ("getSlot(int)

Method UnsupportedOperationException.

Parameters:
"getSlot(int "getSlot(int

internal_setSlot

protected ItemStack internal_setSlot (final short slot, final ItemStack itemStack)

Method internal_setSlot.

Parameters:
final short slot
final ItemStack itemStack

internal_removeSlot

protected ItemStack internal_removeSlot (final short slot)

Method internal_removeSlot.

Parameters:
final short slot

cantAddToSlot

protected boolean cantAddToSlot (final short slot, final ItemStack itemStack, final ItemStack slotItemStack)

Method cantAddToSlot.

Parameters:
final short slot
final ItemStack itemStack
final ItemStack slotItemStack

cantRemoveFromSlot

protected boolean cantRemoveFromSlot (final short slot)

Method cantRemoveFromSlot.

Parameters:
final short slot

cantDropFromSlot

protected boolean cantDropFromSlot (final short slot)

Method cantDropFromSlot.

Parameters:
final short slot

cantMoveToSlot

protected boolean cantMoveToSlot (final ItemContainer fromContainer, final short slotFrom)

Method cantMoveToSlot.

Parameters:
final ItemContainer fromContainer
final short slotFrom

removeAllItemStacks

public List removeAllItemStacks ()

Method removeAllItemStacks.

toProtocolMap

public ItemWithAllMetadata> toProtocolMap ()

Method toProtocolMap.

clone

public EmptyItemContainer clone ()

Method clone.

registerChangeEvent

public EventRegistration registerChangeEvent (final short priority, final Consumer consumer)

Method registerChangeEvent.

Parameters:
final short priority
final Consumer consumer

setGlobalFilter

public void setGlobalFilter (final FilterType globalFilter)

Method setGlobalFilter.

Parameters:
final FilterType globalFilter

setSlotFilter

public void setSlotFilter (final FilterActionType actionType, final short slot, final SlotFilter filter)

Method setSlotFilter.

Parameters:
final FilterActionType actionType
final short slot
final SlotFilter filter