Class Holder<T extends Tracked<K>,K>

java.lang.Object
net.paulem.arcana.regions.Holder<T,K>
Type Parameters:
T - the type of the data object, which must implement the Tracked interface
K - the type of the key associated with the tracked object

public final class Holder<T extends Tracked<K>,K> extends Object
Represents a holder that encapsulates spatial coordinates (x, y, z) and a data object of type T.
  • Constructor Details

    • Holder

      public Holder(int x, int y, int z, T data)
      Creates a new holder for the given data at the specified coordinates.
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the z coordinate
      data - the tracked data object held at this position