Class Criteria
java.lang.Object
eu.endercentral.crazy_advancements.advancement.criteria.Criteria
Represents the Criteria that is required for an Advancement
- Author:
- Axel
-
Constructor Summary
ConstructorDescriptionCriteria
(int requiredNumber) Constructor for creatingCriteriaType
NUMBER which will require a certain numberConstructor for creatingCriteriaType
LIST which will require a list of actions that need to be completed
For further details see Advancement/JSON Format on the Minecraft Wiki -
Method Summary
Modifier and TypeMethodDescriptionString[]
Gets the Action Names (auto-generated when usingCriteriaType
NUMBER)net.minecraft.advancements.AdvancementRequirements
Gets the Requirements (auto-generated when usingCriteriaType
NUMBER)Gets the generated Criteriaint
Gets the required Number (only applies forCriteriaType
NUMBER)String[][]
Gets the Requirements (auto-generated when usingCriteriaType
NUMBER)getType()
Gets the Criteria type
-
Constructor Details
-
Criteria
public Criteria(int requiredNumber) Constructor for creatingCriteriaType
NUMBER which will require a certain number- Parameters:
requiredNumber
- The required number
-
Criteria
Constructor for creatingCriteriaType
LIST which will require a list of actions that need to be completed
For further details see Advancement/JSON Format on the Minecraft Wiki- Parameters:
actionNames
- The names of all occuring actionsrequirements
- The definition of which and how actions are required (AND grouping of OR groups)
-
-
Method Details
-
getType
Gets the Criteria type- Returns:
- The Criteria type
-
getRequiredNumber
public int getRequiredNumber()Gets the required Number (only applies forCriteriaType
NUMBER)- Returns:
- The Required Number
-
getActionNames
Gets the Action Names (auto-generated when usingCriteriaType
NUMBER)- Returns:
- The Actions
-
getRequirements
Gets the Requirements (auto-generated when usingCriteriaType
NUMBER)- Returns:
- The Requirements
-
getAdvancementRequirements
public net.minecraft.advancements.AdvancementRequirements getAdvancementRequirements()Gets the Requirements (auto-generated when usingCriteriaType
NUMBER)- Returns:
- The Requirements
-
getCriteria
Gets the generated Criteria- Returns:
- The generated Criteria
-