java.lang.Object
com.simibubi.create.content.trains.schedule.Schedule

public class Schedule extends Object
  • Field Details

    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,Schedule> STREAM_CODEC
    • INSTRUCTION_TYPES

      public static List<net.createmod.catnip.data.Pair<net.minecraft.resources.ResourceLocation,Supplier<? extends ScheduleInstruction>>> INSTRUCTION_TYPES
    • CONDITION_TYPES

      public static List<net.createmod.catnip.data.Pair<net.minecraft.resources.ResourceLocation,Supplier<? extends ScheduleWaitCondition>>> CONDITION_TYPES
    • entries

      public List<ScheduleEntry> entries
    • cyclic

      public boolean cyclic
    • savedProgress

      public int savedProgress
  • Constructor Details

    • Schedule

      public Schedule()
    • Schedule

      public Schedule(List<ScheduleEntry> entries, boolean cyclic, int savedProgress)
  • Method Details

    • getTypeOptions

      public static <T> List<? extends net.minecraft.network.chat.Component> getTypeOptions(List<net.createmod.catnip.data.Pair<net.minecraft.resources.ResourceLocation,T>> list)
    • write

      public net.minecraft.nbt.CompoundTag write(net.minecraft.core.HolderLookup.Provider registries)
    • fromTag

      public static Schedule fromTag(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag)