All Implemented Interfaces:
IScheduleInput
Direct Known Subclasses:
FluidThresholdCondition, ItemThresholdCondition

public abstract class CargoThresholdCondition extends LazyTickedScheduleCondition
  • 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:
      lazyTickCompletion in class LazyTickedScheduleCondition
    • 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

      public Pair<net.minecraft.world.item.ItemStack,net.minecraft.network.chat.Component> getSummary()
    • slotsTargeted

      public int slotsTargeted()
    • getOperator

      public CargoThresholdCondition.Ops getOperator()
    • getThreshold

      public int getThreshold()
    • getMeasure

      public int getMeasure()
    • getSecondLineTooltip

      public List<net.minecraft.network.chat.Component> getSecondLineTooltip(int slot)
    • initConfigurationWidgets

      public void initConfigurationWidgets(ModularGuiLineBuilder builder)