Class InvalidatablePersistentRef
java.lang.Object
com.hypixel.hytale.server.core.entity.reference.PersistentRef
com.hypixel.hytale.server.core.entity.reference.InvalidatablePersistentRef
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<InvalidatablePersistentRef> protected intFields inherited from class com.hypixel.hytale.server.core.entity.reference.PersistentRef
reference, uuid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intvoidsetEntity(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) voidsetRefCount(int refCount) protected booleanvalidateEntityReference(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor)
-
Field Details
-
CODEC
-
refCount
protected int refCount
-
-
Constructor Details
-
InvalidatablePersistentRef
public InvalidatablePersistentRef()
-
-
Method Details
-
setEntity
public void setEntity(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Overrides:
setEntityin classPersistentRef
-
clear
public void clear()- Overrides:
clearin classPersistentRef
-
setRefCount
public void setRefCount(int refCount) -
getRefCount
public int getRefCount() -
validateEntityReference
protected boolean validateEntityReference(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Overrides:
validateEntityReferencein classPersistentRef
-