Interface AcquirableSource<T>

Type Parameters:
T - the type of the acquired object
All Known Implementing Classes:
Entity, EntityCreature, EntityProjectile, ExperienceOrb, ItemEntity, LivingEntity, Player

@Experimental public interface AcquirableSource<T>
An object that is a source of Acquirable objects, and can be synchronized within a ThreadDispatcher.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Acquirable<? extends T>
    Obtains an Acquirable.
  • Method Details

    • acquirable

      @NotNull @NotNull Acquirable<? extends T> acquirable()
      Obtains an Acquirable. To safely perform operations on this object, the user must call Acquirable.sync(Consumer) or Acquirable.lock() (followed by a subsequent unlock) on the Acquirable instance.
      Returns:
      an Acquirable which can be used to synchronize access to this object