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.Builder
builder()
Fetches the Schedule builder.boolean
contains
(int key) Whether this Schedule contains this timestamp.boolean
Whether this Schedule contains this Activity.entrySet()
Creates an entry set for the timestamps to Activities in this Schedule.get
(int key) Fetches the Activity at this timestamp.keySet()
Fetches all timestamps in this Schedule.int
size()
Fetches the size of this Schedule.values()
Fetches all activities in this Schedule.
-
Method Details
-
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
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
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
-