Class ItemThresholdCondition
java.lang.Object
com.simibubi.create.content.logistics.trains.management.schedule.ScheduleDataEntry
com.simibubi.create.content.logistics.trains.management.schedule.condition.ScheduleWaitCondition
com.simibubi.create.content.logistics.trains.management.schedule.condition.LazyTickedScheduleCondition
com.simibubi.create.content.logistics.trains.management.schedule.condition.CargoThresholdCondition
com.simibubi.create.content.logistics.trains.management.schedule.condition.ItemThresholdCondition
- All Implemented Interfaces:
IScheduleInput
-
Nested Class Summary
Nested classes/interfaces inherited from class com.simibubi.create.content.logistics.trains.management.schedule.condition.CargoThresholdCondition
CargoThresholdCondition.Ops -
Field Summary
FieldsFields inherited from class com.simibubi.create.content.logistics.trains.management.schedule.ScheduleDataEntry
data -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.world.item.ItemStackgetIcon()net.minecraft.resources.ResourceLocationgetId()net.minecraft.world.item.ItemStackgetItem(int slot) List<net.minecraft.network.chat.Component>getTitleAs(String type) protected net.minecraft.network.chat.ComponentgetUnit()net.minecraft.network.chat.MutableComponentgetWaitingStatus(net.minecraft.world.level.Level level, Train train, net.minecraft.nbt.CompoundTag tag) voidprotected voidreadAdditional(net.minecraft.nbt.CompoundTag tag) voidsetItem(int slot, net.minecraft.world.item.ItemStack stack) protected booleanbooleantickCompletion(net.minecraft.world.level.Level level, Train train, net.minecraft.nbt.CompoundTag context) protected voidwriteAdditional(net.minecraft.nbt.CompoundTag tag) Methods inherited from class com.simibubi.create.content.logistics.trains.management.schedule.condition.CargoThresholdCondition
getLastDisplaySnapshot, getMeasure, getOperator, getSecondLineTooltip, getSummary, getThreshold, lazyTickCompletion, requestStatusToUpdate, slotsTargetedMethods inherited from class com.simibubi.create.content.logistics.trains.management.schedule.condition.ScheduleWaitCondition
fromTag, requestStatusToUpdate, writeMethods inherited from class com.simibubi.create.content.logistics.trains.management.schedule.ScheduleDataEntry
enumData, getData, intData, textDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.simibubi.create.content.logistics.trains.management.schedule.IScheduleInput
getSecondLineIcon, renderSpecialIcon
-
Field Details
-
stack
public net.minecraft.world.item.ItemStack stack
-
-
Constructor Details
-
ItemThresholdCondition
public ItemThresholdCondition()
-
-
Method Details
-
getUnit
protected net.minecraft.network.chat.Component getUnit()- Specified by:
getUnitin classCargoThresholdCondition
-
getIcon
protected net.minecraft.world.item.ItemStack getIcon()- Specified by:
getIconin classCargoThresholdCondition
-
test
protected boolean test(net.minecraft.world.level.Level level, Train train, net.minecraft.nbt.CompoundTag context) - Specified by:
testin classCargoThresholdCondition
-
writeAdditional
protected void writeAdditional(net.minecraft.nbt.CompoundTag tag) - Overrides:
writeAdditionalin classScheduleDataEntry
-
readAdditional
protected void readAdditional(net.minecraft.nbt.CompoundTag tag) - Overrides:
readAdditionalin classScheduleDataEntry
-
tickCompletion
public boolean tickCompletion(net.minecraft.world.level.Level level, Train train, net.minecraft.nbt.CompoundTag context) - Overrides:
tickCompletionin classLazyTickedScheduleCondition
-
setItem
public void setItem(int slot, net.minecraft.world.item.ItemStack stack) -
getItem
public net.minecraft.world.item.ItemStack getItem(int slot) -
getTitleAs
-
getId
public net.minecraft.resources.ResourceLocation getId() -
initConfigurationWidgets
- Specified by:
initConfigurationWidgetsin interfaceIScheduleInput- Overrides:
initConfigurationWidgetsin classCargoThresholdCondition
-
getWaitingStatus
public net.minecraft.network.chat.MutableComponent getWaitingStatus(net.minecraft.world.level.Level level, Train train, net.minecraft.nbt.CompoundTag tag) - Specified by:
getWaitingStatusin classScheduleWaitCondition
-