Class Schedule

java.lang.Object
me.gamercoder215.mobchip.ai.schedule.Schedule

public final class Schedule extends Object
Represents a Mob's Daily Routine
  • Method Details

    • builder

      public static Schedule.Builder builder()
      Fetches the Schedule builder.
      Returns:
      Schedule Builder
    • size

      public int size()
      Fetches the size of this Schedule.
      Returns:
      Size of this Schedule
    • contains

      public boolean contains(int key)
      Whether this Schedule contains this timestamp.
      Parameters:
      key - Timestamp
      Returns:
      true if contains, else false
    • contains

      public boolean contains(@NotNull @NotNull Activity value)
      Whether this Schedule contains this Activity.
      Parameters:
      value - Activity
      Returns:
      true if contains, else false
    • get

      @Nullable public @Nullable Activity get(int key)
      Fetches the Activity at this timestamp.
      Parameters:
      key - Timestamp
      Returns:
      Activity found, or null if not found
    • keySet

      @NotNull public @NotNull Set<Integer> keySet()
      Fetches all timestamps in this Schedule.
      Returns:
      Schedule's Timestamps
    • values

      Fetches all activities in this Schedule.
      Returns:
      Schedule's Activities
    • entrySet

      Creates an entry set for the timestamps to Activities in this Schedule.
      Returns:
      Entry set of timestamps to Activities