Contents
Class EncounterMembers
java.lang.Object
com.hypixel.hytale.builtin.encountermanager.EncounterMembers
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
The players currently inside an encounter, shared by every per-player effect it drives. Membership is tracked with a
short time-to-live so a player who leaves the driving sensor's range is reverted once their TTL lapses.
Keyed by ref identity: the store reassigns ref indexes on compaction and clears them on invalidation.
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclone()static ComponentType<EntityStore, EncounterMembers> it.unimi.dsi.fastutil.objects.Reference2FloatOpenHashMap<Ref<EntityStore>> booleanisEmpty()voidstampMember(Ref<EntityStore> playerRef, float ttlSeconds) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
EncounterMembers
public EncounterMembers()
-
-
Method Details
-
getComponentType
-
stampMember
-
getMemberTtl
@Nonnull public it.unimi.dsi.fastutil.objects.Reference2FloatOpenHashMap<Ref<EntityStore>> getMemberTtl() -
isEmpty
public boolean isEmpty() -
clearMembers
public void clearMembers() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-