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.
readAction
protected
V
readAction
(@Nonnull final Supplier action)
Method readAction.
- Parameters:
@Nonnull final Supplieraction
writeAction
protected
V
writeAction
(@Nonnull final Supplier action)
Method writeAction.
- Parameters:
@Nonnull final Supplieraction
internal_getSlot
Method internal_getSlot.
- Parameters:
final shortslot
UnsupportedOperationException
public
new
UnsupportedOperationException
("getSlot(int)
Method UnsupportedOperationException.
- Parameters:
"getSlot(int"getSlot(int
internal_removeSlot
Method internal_removeSlot.
- Parameters:
final shortslot
cantAddToSlot
protected
boolean
cantAddToSlot
(final short slot, final ItemStack itemStack, final ItemStack slotItemStack)
Method cantAddToSlot.
- Parameters:
final shortslotfinal ItemStackitemStackfinal ItemStackslotItemStack
cantRemoveFromSlot
protected
boolean
cantRemoveFromSlot
(final short slot)
Method cantRemoveFromSlot.
- Parameters:
final shortslot
cantDropFromSlot
protected
boolean
cantDropFromSlot
(final short slot)
Method cantDropFromSlot.
- Parameters:
final shortslot
cantMoveToSlot
Method cantMoveToSlot.
- Parameters:
final ItemContainerfromContainerfinal shortslotFrom
removeAllItemStacks
public
List
removeAllItemStacks
()
Method removeAllItemStacks.
toProtocolMap
public
ItemWithAllMetadata>
toProtocolMap
()
Method toProtocolMap.
registerChangeEvent
Method registerChangeEvent.
- Parameters:
final shortpriorityfinal Consumerconsumer
setSlotFilter
public
void
setSlotFilter
(final FilterActionType actionType, final short slot, final SlotFilter filter)
Method setSlotFilter.
- Parameters:
final FilterActionTypeactionTypefinal shortslotfinal SlotFilterfilter