Class Schedule
java.lang.Object
me.gamercoder215.mobchip.ai.schedule.Schedule
Represents a Mob's Daily Routine
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Schedule.Builderbuilder()Fetches the Schedule builder.booleancontains(int key) Whether this Schedule contains this timestamp.booleanWhether this Schedule contains this Activity.entrySet()Creates an entry set for the timestamps to Activities in this Schedule.@Nullable Activityget(int key) Fetches the Activity at this timestamp.keySet()Fetches all timestamps in this Schedule.intsize()Fetches the size of this Schedule.@NotNull Collection<Activity> values()Fetches all activities in this Schedule.
-
Method Details
-
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
Whether this Schedule contains this Activity.- Parameters:
value- Activity- Returns:
- true if contains, else false
-
get
Fetches the Activity at this timestamp.- Parameters:
key- Timestamp- Returns:
- Activity found, or null if not found
-
keySet
-
values
Fetches all activities in this Schedule.- Returns:
- Schedule's Activities
-
entrySet
-