Class ScheduleInstruction

java.lang.Object
com.simibubi.create.content.trains.schedule.ScheduleDataEntry
com.simibubi.create.content.trains.schedule.destination.ScheduleInstruction
All Implemented Interfaces:
IScheduleInput
Direct Known Subclasses:
ChangeThrottleInstruction, DeliverPackagesInstruction, TextScheduleInstruction

public abstract class ScheduleInstruction extends ScheduleDataEntry
  • Field Details

    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,ScheduleInstruction> STREAM_CODEC
  • Constructor Details

    • ScheduleInstruction

      public ScheduleInstruction()
  • Method Details

    • supportsConditions

      public abstract boolean supportsConditions()
    • start

      @Nullable public abstract @Nullable DiscoveredPath start(ScheduleRuntime runtime, net.minecraft.world.level.Level level)
    • write

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

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