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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ScheduleInstruction> Fields inherited from class com.simibubi.create.content.trains.schedule.ScheduleDataEntry
data -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScheduleInstructionfromTag(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag) abstract @Nullable DiscoveredPathstart(ScheduleRuntime runtime, net.minecraft.world.level.Level level) abstract booleanfinal net.minecraft.nbt.CompoundTagwrite(net.minecraft.core.HolderLookup.Provider registries) Methods inherited from class com.simibubi.create.content.trains.schedule.ScheduleDataEntry
enumData, getData, intData, readAdditional, setData, textData, writeAdditionalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.simibubi.create.content.trains.schedule.IScheduleInput
getId, getItem, getSecondLineIcon, getSecondLineTooltip, getSummary, getTitleAs, initConfigurationWidgets, renderSpecialIcon, setItem, slotsTargeted
-
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)
-