Class Schedule
java.lang.Object
com.simibubi.create.content.trains.schedule.Schedule
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic List<net.createmod.catnip.data.Pair<net.minecraft.resources.ResourceLocation, Supplier<? extends ScheduleWaitCondition>>> booleanstatic List<net.createmod.catnip.data.Pair<net.minecraft.resources.ResourceLocation, Supplier<? extends ScheduleInstruction>>> intstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, Schedule> -
Constructor Summary
ConstructorsConstructorDescriptionSchedule()Schedule(List<ScheduleEntry> entries, boolean cyclic, int savedProgress) -
Method Summary
Modifier and TypeMethodDescriptionstatic SchedulefromTag(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag) static <T> List<? extends net.minecraft.network.chat.Component> getTypeOptions(List<net.createmod.catnip.data.Pair<net.minecraft.resources.ResourceLocation, T>> list) net.minecraft.nbt.CompoundTagwrite(net.minecraft.core.HolderLookup.Provider registries)
-
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
-
cyclic
public boolean cyclic -
savedProgress
public int savedProgress
-
-
Constructor Details
-
Schedule
public Schedule() -
Schedule
-
-
Method Details
-
getTypeOptions
-
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)
-