Class PartStateOffsetHandler<P extends IPartType>

java.lang.Object
org.cyclops.integrateddynamics.core.part.PartStateOffsetHandler<P>

public class PartStateOffsetHandler<P extends IPartType> extends Object
Handles dynamic offsets inside part states.
  • Field Details

    • offsetVariableEvaluators

      public final List<InventoryVariableEvaluator<ValueTypeInteger.ValueInteger>> offsetVariableEvaluators
    • offsetVariablesSlotMessages

      public final it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.network.chat.MutableComponent> offsetVariablesSlotMessages
    • offsetVariablesDirty

      public boolean offsetVariablesDirty
    • offsetVariableSlotDirty

      public final it.unimi.dsi.fastutil.ints.IntSet offsetVariableSlotDirty
    • offsetVariableListeners

      public final Map<IVariable,Boolean> offsetVariableListeners
  • Constructor Details

    • PartStateOffsetHandler

      public PartStateOffsetHandler()
  • Method Details

    • initializeVariableEvaluators

      public void initializeVariableEvaluators(org.cyclops.cyclopscore.inventory.SimpleInventory offsetVariablesInventory, PartTarget target)
    • updateOffsetVariables

      public void updateOffsetVariables(P partType, IPartState<P> partState, INetwork network, IPartNetwork partNetwork, PartTarget target)
    • markOffsetVariablesChanged

      public void markOffsetVariablesChanged()
    • getOffsetVariablesInventory

      public org.cyclops.cyclopscore.inventory.SimpleInventory getOffsetVariablesInventory(IPartState<P> partState)
    • reloadOffsetVariables

      public void reloadOffsetVariables(P partType, IPartState<P> partState, INetwork network, IPartNetwork partNetwork, PartTarget target)
    • getOffsetVariableError

      @Nullable public net.minecraft.network.chat.MutableComponent getOffsetVariableError(int slot)
    • reloadOffsetVariable

      protected void reloadOffsetVariable(P partType, IPartState<P> partState, INetwork network, IPartNetwork partNetwork, PartTarget target, int slot)