public class Schedule extends Object
Modifier and Type | Field and Description |
---|---|
static Schedule |
EMPTY |
private Map<Activity,ScheduleRule> |
scheduleRules |
static Schedule |
SIMPLE |
static Schedule |
VILLAGER_BABY |
static Schedule |
VILLAGER_DEFAULT |
Constructor and Description |
---|
Schedule() |
Modifier and Type | Method and Description |
---|---|
protected void |
addActivity(Activity activity) |
Activity |
getActivityForTime(int time) |
protected List<ScheduleRule> |
getOtherRules(Activity activity) |
protected ScheduleRule |
getRule(Activity activity) |
protected static ScheduleBuilder |
register(String id) |
public static final Schedule EMPTY
public static final Schedule SIMPLE
public static final Schedule VILLAGER_BABY
public static final Schedule VILLAGER_DEFAULT
private final Map<Activity,ScheduleRule> scheduleRules
protected static ScheduleBuilder register(String id)
protected void addActivity(Activity activity)
protected ScheduleRule getRule(Activity activity)
protected List<ScheduleRule> getOtherRules(Activity activity)
public Activity getActivityForTime(int time)