Class PartConfigApplyResult

java.lang.Object
org.cyclops.integrateddynamics.core.part.PartConfigApplyResult

public class PartConfigApplyResult extends Object
The outcome of pasting a PartConfigSnapshot onto a part.
  • Constructor Details

    • PartConfigApplyResult

      public PartConfigApplyResult()
  • Method Details

    • isPartSettingsApplied

      public boolean isPartSettingsApplied()
    • setPartSettingsApplied

      public void setPartSettingsApplied(boolean partSettingsApplied)
    • isOffsetFailed

      public boolean isOffsetFailed()
    • setOffsetFailed

      public void setOffsetFailed(boolean offsetFailed)
    • getAppliedProperties

      public int getAppliedProperties()
    • addAppliedProperties

      public void addAppliedProperties(int amount)
    • getSkippedProperties

      public int getSkippedProperties()
    • addSkippedProperties

      public void addSkippedProperties(int amount)
    • getCardsPasted

      public int getCardsPasted()
    • addCardsPasted

      public void addCardsPasted(int amount)
    • getCardsSkipped

      public int getCardsSkipped()
    • addCardsSkipped

      public void addCardsSkipped(int amount)
    • getMissingBlanks

      public int getMissingBlanks()
    • setMissingBlanks

      public void setMissingBlanks(int missingBlanks)
    • getAppliedMaxOffset

      public int getAppliedMaxOffset()
      Returns:
      By how much the maximum offset of the part was increased.
    • setAppliedMaxOffset

      public void setAppliedMaxOffset(int appliedMaxOffset)
    • getMissingMaxOffset

      public int getMissingMaxOffset()
      Returns:
      The offset enhancement value that the player was short of.
    • setMissingMaxOffset

      public void setMissingMaxOffset(int missingMaxOffset)
    • addApplied

      public void addApplied(net.minecraft.network.chat.Component applied)
      Report something that a part type pasted itself, to be mentioned alongside the rest.
      Parameters:
      applied - What was pasted, phrased to fit in a comma separated list.
    • addWarning

      public void addWarning(net.minecraft.network.chat.Component warning)
      Report something that a part type could not paste.
      Parameters:
      warning - What did not go as the player intended.
    • getMessage

      public net.minecraft.network.chat.MutableComponent getMessage()
      Returns:
      A single line summarising what was applied.
    • getWarnings

      public List<net.minecraft.network.chat.MutableComponent> getWarnings()
      These are kept apart from getMessage(), as the two together are too long for the single line that the action bar has.
      Returns:
      What did not go as the player intended, if anything.