Contents
Class PersistentRef
java.lang.Object
com.hypixel.hytale.server.core.entity.reference.PersistentRef
- Direct Known Subclasses:
InvalidatablePersistentRef
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()getEntity(ComponentAccessor<EntityStore> componentAccessor) getUuid()booleanisValid()voidsetEntity(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) voidsetEntity(Ref<EntityStore> ref, UUID uuid) void
-
Field Details
-
CODEC
-
-
Constructor Details
-
PersistentRef
public PersistentRef() -
PersistentRef
-
-
Method Details
-
getUuid
-
setUuid
-
setEntity
-
setEntity
public void setEntity(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
clear
public void clear() -
isValid
public boolean isValid() -
getEntity
@Nullable public Ref<EntityStore> getEntity(@Nonnull ComponentAccessor<EntityStore> componentAccessor)
-