public class TimeCommand extends AbstractWorldCommand
Command for tim operations. Registered with the command system and callable by players.
java.lang.Object > AbstractWorldCommand > TimeCommand
Field Summary
worldTimeResource
final
WorldTimeResource
worldTimeResource
Field worldTimeResource.
gameDateTime
final
LocalDateTime
gameDateTime
Field gameDateTime.
pausedMessage
final
Message
pausedMessage
Field pausedMessage.
message
final
Message
message
Field message.
timeDilation
final
float
timeDilation
Field timeDilation.
time
final
float
time
Field time.
daylightHours
final
float
daylightHours
Field daylightHours.
periodTime
final
float
periodTime
Field periodTime.
Method Detail
TimeCommand
public
public
TimeCommand
()
Method TimeCommand.
SetTimeHourCommand
public
new
SetTimeHourCommand
()
Method SetTimeHourCommand.
SetTimePeriodCommand
public
new
SetTimePeriodCommand
(value)
Method SetTimePeriodCommand.
- Parameters:
valuevalue
TimeSetSubCommand
public
new
TimeSetSubCommand
()
Method TimeSetSubCommand.
TimePauseCommand
public
new
TimePauseCommand
()
Method TimePauseCommand.
TimeDilationCommand
public
new
TimeDilationCommand
()
Method TimeDilationCommand.
execute
public
void
execute
(@Nonnull final CommandContext context, @Nonnull final World world, @Nonnull final Store store)
Method execute.
- Parameters:
@Nonnull final CommandContextcontext@Nonnull final Worldworld@Nonnull final Storestore
TimeOfDay
public
private
TimeOfDay
(final Float2FloatFunction periodFunc, final String[] aliases)
Method TimeOfDay.
- Parameters:
final Float2FloatFunctionperiodFuncfinal String[]aliases