Class PersistentRef
java.lang.Object
com.hypixel.hytale.server.core.entity.reference.PersistentRef
- Direct Known Subclasses:
InvalidatablePersistentRef
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<PersistentRef> protected Ref<EntityStore> protected UUID -
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) voidprotected booleanvalidateEntityReference(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor)
-
Field Details
-
CODEC
-
uuid
-
reference
-
-
Constructor Details
-
PersistentRef
public 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) -
validateEntityReference
protected boolean validateEntityReference(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor)
-