Class PartConfigApplyResult
java.lang.Object
org.cyclops.integrateddynamics.core.part.PartConfigApplyResult
The outcome of pasting a
PartConfigSnapshot onto a part.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddApplied(net.minecraft.network.chat.Component applied) Report something that a part type pasted itself, to be mentioned alongside the rest.voidaddAppliedProperties(int amount) voidaddCardsPasted(int amount) voidaddCardsSkipped(int amount) voidaddSkippedProperties(int amount) voidaddWarning(net.minecraft.network.chat.Component warning) Report something that a part type could not paste.intintintintnet.minecraft.network.chat.MutableComponentintintintList<net.minecraft.network.chat.MutableComponent> These are kept apart fromgetMessage(), as the two together are too long for the single line that the action bar has.booleanbooleanvoidsetAppliedMaxOffset(int appliedMaxOffset) voidsetMissingBlanks(int missingBlanks) voidsetMissingMaxOffset(int missingMaxOffset) voidsetOffsetFailed(boolean offsetFailed) voidsetPartSettingsApplied(boolean partSettingsApplied)
-
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
These are kept apart fromgetMessage(), 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.
-