Contents
Class UUIDComponent
java.lang.Object
com.hypixel.hytale.server.core.entity.UUIDComponent
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
UUID Component
An entity component that holds a single UUID instance
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<UUIDComponent> The codec used for parsingUUIDComponentinstancesFields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static UUIDComponentGenerates aUUIDComponentinstance, populated with a v3 UUIDstatic ComponentType<EntityStore, UUIDComponent> getUuid()static UUIDComponenttoString()Methods inherited from interface Component
cloneSerializable
-
Field Details
-
CODEC
The codec used for parsingUUIDComponentinstances
-
-
Constructor Details
-
UUIDComponent
Default constructor for aUUIDComponentinstance- Parameters:
uuid- TheUUIDthat should be set on this component
-
-
Method Details
-
getComponentType
- Returns:
- the affiliated component type for
UUIDComponentinstances
-
getUuid
-
toString
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-
generateVersion3UUID
Generates aUUIDComponentinstance, populated with a v3 UUID- Returns:
- the newly created
UUIDComponentinstance
-
randomUUID
-