Class CargoThresholdCondition
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
- All Implemented Interfaces:
IScheduleInput
- Direct Known Subclasses:
FluidThresholdCondition,ItemThresholdCondition
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.simibubi.create.content.logistics.trains.management.schedule.ScheduleDataEntry
data -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract net.minecraft.world.item.ItemStackgetIcon()protected intgetLastDisplaySnapshot(net.minecraft.nbt.CompoundTag context) intList<net.minecraft.network.chat.Component>getSecondLineTooltip(int slot) Pair<net.minecraft.world.item.ItemStack,net.minecraft.network.chat.Component> intprotected abstract net.minecraft.network.chat.ComponentgetUnit()voidbooleanlazyTickCompletion(net.minecraft.world.level.Level level, Train train, net.minecraft.nbt.CompoundTag context) protected voidrequestStatusToUpdate(int amount, net.minecraft.nbt.CompoundTag context) intprotected abstract booleanMethods inherited from class com.simibubi.create.content.logistics.trains.management.schedule.condition.LazyTickedScheduleCondition
tickCompletionMethods inherited from class com.simibubi.create.content.logistics.trains.management.schedule.condition.ScheduleWaitCondition
fromTag, getWaitingStatus, requestStatusToUpdate, writeMethods inherited from class com.simibubi.create.content.logistics.trains.management.schedule.ScheduleDataEntry
enumData, getData, intData, readAdditional, 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.logistics.trains.management.schedule.IScheduleInput
getId, getItem, getSecondLineIcon, getTitleAs, renderSpecialIcon, setItem
-
Constructor Details
-
CargoThresholdCondition
public CargoThresholdCondition()
-
-
Method Details
-
lazyTickCompletion
public boolean lazyTickCompletion(net.minecraft.world.level.Level level, Train train, net.minecraft.nbt.CompoundTag context) - Specified by:
lazyTickCompletionin classLazyTickedScheduleCondition
-
requestStatusToUpdate
protected void requestStatusToUpdate(int amount, net.minecraft.nbt.CompoundTag context) -
getLastDisplaySnapshot
protected int getLastDisplaySnapshot(net.minecraft.nbt.CompoundTag context) -
test
protected abstract boolean test(net.minecraft.world.level.Level level, Train train, net.minecraft.nbt.CompoundTag context) -
getUnit
protected abstract net.minecraft.network.chat.Component getUnit() -
getIcon
protected abstract net.minecraft.world.item.ItemStack getIcon() -
getSummary
-
slotsTargeted
public int slotsTargeted() -
getOperator
-
getThreshold
public int getThreshold() -
getMeasure
public int getMeasure() -
getSecondLineTooltip
-
initConfigurationWidgets
-