InvalidatablePersistentRef

public class InvalidatablePersistentRef extends PersistentRef

Class InvalidatablePersistentRef. Provides invalidatablepersistentref functionality for the Hytale server.

java.lang.Object > PersistentRef > InvalidatablePersistentRef

Field Summary

refCount

protected int refCount

Field refCount.

Method Detail

setEntity

public void setEntity (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method setEntity.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor

clear

public void clear ()

Method clear.

setRefCount

public void setRefCount (final int refCount)

Method setRefCount.

Parameters:
final int refCount

getRefCount

public int getRefCount ()

Method getRefCount.

validateEntityReference

protected boolean validateEntityReference (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method validateEntityReference.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor