Class TargetContext

All Implemented Interfaces:
IContext

public class TargetContext extends PlayerContext
  • Field Details

    • target

      private final Entity target
  • Constructor Details

  • Method Details

    • get

      @Nullable public <T> T get(ContextKey<T> key)
      Specified by:
      get in interface IContext
      Overrides:
      get in class Context
      Parameters:
      key - Context key
      Returns:
      Context object
    • covers

      protected boolean covers(ContextKey<?> key)
      Overrides:
      covers in class Context