Class CriteriaMock

java.lang.Object
be.seeseemelk.mockbukkit.scoreboard.CriteriaMock
All Implemented Interfaces:
org.bukkit.scoreboard.Criteria

public class CriteriaMock extends Object implements org.bukkit.scoreboard.Criteria
Mock implementation of a Criteria.
  • Field Summary

    Fields inherited from interface org.bukkit.scoreboard.Criteria

    AIR, ARMOR, DEATH_COUNT, DUMMY, FOOD, HEALTH, KILLED_BY_TEAM_AQUA, KILLED_BY_TEAM_BLACK, KILLED_BY_TEAM_BLUE, KILLED_BY_TEAM_DARK_AQUA, KILLED_BY_TEAM_DARK_BLUE, KILLED_BY_TEAM_DARK_GRAY, KILLED_BY_TEAM_DARK_GREEN, KILLED_BY_TEAM_DARK_PURPLE, KILLED_BY_TEAM_DARK_RED, KILLED_BY_TEAM_GOLD, KILLED_BY_TEAM_GRAY, KILLED_BY_TEAM_GREEN, KILLED_BY_TEAM_LIGHT_PURPLE, KILLED_BY_TEAM_RED, KILLED_BY_TEAM_WHITE, KILLED_BY_TEAM_YELLOW, LEVEL, PLAYER_KILL_COUNT, TEAM_KILL_AQUA, TEAM_KILL_BLACK, TEAM_KILL_BLUE, TEAM_KILL_DARK_AQUA, TEAM_KILL_DARK_BLUE, TEAM_KILL_DARK_GRAY, TEAM_KILL_DARK_GREEN, TEAM_KILL_DARK_PURPLE, TEAM_KILL_DARK_RED, TEAM_KILL_GOLD, TEAM_KILL_GRAY, TEAM_KILL_GREEN, TEAM_KILL_LIGHT_PURPLE, TEAM_KILL_RED, TEAM_KILL_WHITE, TEAM_KILL_YELLOW, TOTAL_KILL_COUNT, TRIGGER, XP
  • Constructor Summary

    Constructors
    Constructor
    Description
    CriteriaMock(@NotNull String name)
    Constructs a new CriteriaMock with the provided name.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    @NotNull org.bukkit.scoreboard.RenderType
     
    @NotNull String
     
    int
     
    boolean
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CriteriaMock

      public CriteriaMock(@NotNull @NotNull String name)
      Constructs a new CriteriaMock with the provided name.
      Parameters:
      name - The name of the criteria.
  • Method Details

    • getName

      @NotNull public @NotNull String getName()
      Specified by:
      getName in interface org.bukkit.scoreboard.Criteria
    • isReadOnly

      public boolean isReadOnly()
      Specified by:
      isReadOnly in interface org.bukkit.scoreboard.Criteria
    • getDefaultRenderType

      @NotNull public @NotNull org.bukkit.scoreboard.RenderType getDefaultRenderType()
      Specified by:
      getDefaultRenderType in interface org.bukkit.scoreboard.Criteria
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object