Class ShapeTargeter

All Implemented Interfaces:
InlineSerializer<Targeter>, Serializer<Targeter>, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
Direct Known Subclasses:
ScatterTargeter

public abstract class ShapeTargeter extends RelativeTargeter
  • Constructor Details

    • ShapeTargeter

      public ShapeTargeter()
      Default constructor for serializer
  • Method Details

    • isEntity

      public boolean isEntity()
      Description copied from class: Targeter
      Returns true if this targeter specifically targets an entity. Entity targeters also target locations by default, but that location will always be the entity's location.

      There is 1 caveat, when Targeter.getOffset() is non-null, the targeted location will be different from the targeted entity.

      Specified by:
      isEntity in class Targeter
      Returns:
      true if this targeter targets entities, not specific locations.
    • getTargets0

      @NotNull protected final @NotNull Iterator<CastData> getTargets0(@NotNull @NotNull CastData cast)
      Specified by:
      getTargets0 in class Targeter
    • getPoints

      @NotNull public abstract @NotNull Iterator<org.bukkit.util.Vector> getPoints(@NotNull @NotNull CastData cast)