Package tschipp.carryon.common.scripting
Record Class CarryOnScript.ScriptConditions
java.lang.Object
java.lang.Record
tschipp.carryon.common.scripting.CarryOnScript.ScriptConditions
- Enclosing class:
- CarryOnScript
public static record CarryOnScript.ScriptConditions(Matchables.GamestageCondition conditionGamestage, Matchables.AdvancementCondition conditionAchievement, Matchables.NumberBoundCondition conditionXp, Matchables.NumberBoundCondition conditionGamemode, Matchables.ScoreboardCondition conditionScoreboard, Matchables.PositionCondition conditionPosition, Matchables.EffectsCondition conditionEffects)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CarryOnScript.ScriptConditions>static final CarryOnScript.ScriptConditions -
Constructor Summary
ConstructorsConstructorDescriptionScriptConditions(Matchables.GamestageCondition conditionGamestage, Matchables.AdvancementCondition conditionAchievement, Matchables.NumberBoundCondition conditionXp, Matchables.NumberBoundCondition conditionGamemode, Matchables.ScoreboardCondition conditionScoreboard, Matchables.PositionCondition conditionPosition, Matchables.EffectsCondition conditionEffects) Creates an instance of aScriptConditionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionAchievementrecord component.Returns the value of theconditionEffectsrecord component.Returns the value of theconditionGamemoderecord component.Returns the value of theconditionGamestagerecord component.Returns the value of theconditionPositionrecord component.Returns the value of theconditionScoreboardrecord component.Returns the value of theconditionXprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
CODEC
-
-
Constructor Details
-
ScriptConditions
public ScriptConditions(Matchables.GamestageCondition conditionGamestage, Matchables.AdvancementCondition conditionAchievement, Matchables.NumberBoundCondition conditionXp, Matchables.NumberBoundCondition conditionGamemode, Matchables.ScoreboardCondition conditionScoreboard, Matchables.PositionCondition conditionPosition, Matchables.EffectsCondition conditionEffects) Creates an instance of aScriptConditionsrecord class.- Parameters:
conditionGamestage- the value for theconditionGamestagerecord componentconditionAchievement- the value for theconditionAchievementrecord componentconditionXp- the value for theconditionXprecord componentconditionGamemode- the value for theconditionGamemoderecord componentconditionScoreboard- the value for theconditionScoreboardrecord componentconditionPosition- the value for theconditionPositionrecord componentconditionEffects- the value for theconditionEffectsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
conditionGamestage
Returns the value of theconditionGamestagerecord component.- Returns:
- the value of the
conditionGamestagerecord component
-
conditionAchievement
Returns the value of theconditionAchievementrecord component.- Returns:
- the value of the
conditionAchievementrecord component
-
conditionXp
Returns the value of theconditionXprecord component.- Returns:
- the value of the
conditionXprecord component
-
conditionGamemode
Returns the value of theconditionGamemoderecord component.- Returns:
- the value of the
conditionGamemoderecord component
-
conditionScoreboard
Returns the value of theconditionScoreboardrecord component.- Returns:
- the value of the
conditionScoreboardrecord component
-
conditionPosition
Returns the value of theconditionPositionrecord component.- Returns:
- the value of the
conditionPositionrecord component
-
conditionEffects
Returns the value of theconditionEffectsrecord component.- Returns:
- the value of the
conditionEffectsrecord component
-