Class ScheduleRuntime
java.lang.Object
com.simibubi.create.content.trains.schedule.ScheduleRuntime
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanList<net.minecraft.nbt.CompoundTag> intbooleanbooleanbooleanint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidnet.minecraft.network.chat.MutableComponentgetWaitingStatus(net.minecraft.world.level.Level level) voidread(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag) net.minecraft.world.item.ItemStackreturnSchedule(net.minecraft.core.HolderLookup.Provider registries) voidsetSchedule(Schedule schedule, boolean auto) voidsetSchedulePresentClientside(boolean present) voidstartCurrentInstruction(net.minecraft.world.level.Level level) voidtick(net.minecraft.world.level.Level level) voidtickConditions(net.minecraft.world.level.Level level) voidnet.minecraft.nbt.CompoundTagwrite(net.minecraft.core.HolderLookup.Provider registries)
-
Field Details
-
train
-
schedule
-
isAutoSchedule
public boolean isAutoSchedule -
paused
public boolean paused -
completed
public boolean completed -
currentEntry
public int currentEntry -
state
-
conditionProgress
-
conditionContext
-
currentTitle
-
ticksInTransit
public int ticksInTransit -
predictionTicks
-
displayLinkUpdateRequested
public boolean displayLinkUpdateRequested
-
-
Constructor Details
-
ScheduleRuntime
-
-
Method Details
-
startCooldown
public void startCooldown() -
destinationReached
public void destinationReached() -
transitInterrupted
public void transitInterrupted() -
tick
public void tick(net.minecraft.world.level.Level level) -
tickConditions
public void tickConditions(net.minecraft.world.level.Level level) -
startCurrentInstruction
-
setSchedule
-
getSchedule
-
discardSchedule
public void discardSchedule() -
submitPredictions
-
write
public net.minecraft.nbt.CompoundTag write(net.minecraft.core.HolderLookup.Provider registries) -
read
public void read(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag) -
returnSchedule
public net.minecraft.world.item.ItemStack returnSchedule(net.minecraft.core.HolderLookup.Provider registries) -
setSchedulePresentClientside
public void setSchedulePresentClientside(boolean present) -
getWaitingStatus
public net.minecraft.network.chat.MutableComponent getWaitingStatus(net.minecraft.world.level.Level level)
-