Contents
Class InventoryComponent.Combined
java.lang.Object
com.hypixel.hytale.server.core.inventory.InventoryComponent.Combined
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
- Enclosing class:
InventoryComponent
Non-serialized helper component that caches
CombinedItemContainer instances keyed by
the component-type arrays used to create them. Lazily attached to entities on first
InventoryComponent.getCombined(ComponentAccessor, Ref, ComponentType...) call.-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()it.unimi.dsi.fastutil.objects.Object2ObjectOpenCustomHashMap<ComponentType[], CombinedItemContainer> Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
Combined
public Combined()
-
-
Method Details
-
getInventories
public it.unimi.dsi.fastutil.objects.Object2ObjectOpenCustomHashMap<ComponentType[], CombinedItemContainer> getInventories() -
getComponentType
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-