Class BossRequirement
java.lang.Object
com.pixelmonmod.api.requirement.AbstractRequirement<Pokemon,PixelmonEntity,A>
com.pixelmonmod.api.pokemon.requirement.AbstractPokemonRequirement<BossTier>
com.pixelmonmod.api.pokemon.requirement.impl.BossRequirement
- All Implemented Interfaces:
Requirement<Pokemon,
PixelmonEntity, BossTier>
-
Field Summary
Fields inherited from class com.pixelmonmod.api.requirement.AbstractRequirement
keys
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies the parsed requirement to the datavoid
applyMinecraft
(PixelmonEntity entity) Applis the parsed requirement to the minecraft dataAttempts to parse the spec with the key that was found in the spec stringcreateInstance
(BossTier value) Creates a new instance of the requirement with the given valuegetValue()
Gets the internal value of the requirementboolean
isDataMatch
(Pokemon pixelmon) If the data type matches the parsed requirementboolean
isMinecraftMatch
(PixelmonEntity entity) If the minecraft type matches the parsed requirementMethods inherited from class com.pixelmonmod.api.requirement.AbstractRequirement
create, fits, getAliases
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.api.requirement.Requirement
getPriority, shouldContinue
-
Field Details
-
tier
-
-
Constructor Details
-
BossRequirement
public BossRequirement() -
BossRequirement
-
-
Method Details
-
create
Description copied from class:AbstractRequirement
Attempts to parse the spec with the key that was found in the spec string- Specified by:
create
in classAbstractPokemonRequirement<BossTier>
- Parameters:
key
- The key foundspec
- The spec being parsed- Returns:
- The parse attempt
-
createInstance
Description copied from interface:Requirement
Creates a new instance of the requirement with the given value- Parameters:
value
- The value- Returns:
- The new requirement instance
-
isMinecraftMatch
Description copied from interface:Requirement
If the minecraft type matches the parsed requirement- Specified by:
isMinecraftMatch
in interfaceRequirement<Pokemon,
PixelmonEntity, BossTier> - Overrides:
isMinecraftMatch
in classAbstractPokemonRequirement<BossTier>
- Parameters:
entity
- The minecraft data to check against- Returns:
- True if a match
-
applyMinecraft
Description copied from interface:Requirement
Applis the parsed requirement to the minecraft data- Specified by:
applyMinecraft
in interfaceRequirement<Pokemon,
PixelmonEntity, BossTier> - Overrides:
applyMinecraft
in classAbstractPokemonRequirement<BossTier>
- Parameters:
entity
- The minecraft data
-
getValue
Description copied from interface:Requirement
Gets the internal value of the requirement- Returns:
- The value stored
-
isDataMatch
Description copied from interface:Requirement
If the data type matches the parsed requirement- Parameters:
pixelmon
- The data to check against- Returns:
- True if a match
-
applyData
Description copied from interface:Requirement
Applies the parsed requirement to the data- Parameters:
pixelmon
- The data
-