Record Class TeraPokemonModifierRaidStrategy
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.battles.raids.tera.strategy.TeraPokemonModifierRaidStrategy
- All Implemented Interfaces:
PokemonModifierRaidStrategy,RaidStrategy
public record TeraPokemonModifierRaidStrategy()
extends Record
implements PokemonModifierRaidStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TeraPokemonModifierRaidStrategy> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aTeraPokemonModifierRaidStrategyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyMoveset(BattleParticipant boss, PixelmonWrapper wrapper) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidpopulatePokemon(BattleParticipant boss, PixelmonWrapper wrapper) final StringtoString()Returns a string representation of this record class.type()Gets the registered type used to serialize and deserialize this strategy.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.battles.raids.strategy.PokemonModifierRaidStrategy
createCatchablePokemon, onRaidStart, onUseAttackPost, rollChancesMethods inherited from interface com.pixelmonmod.pixelmon.battles.raids.strategy.RaidStrategy
onAddStatus, onBattleAction, onBossAttack, onBossDamaged, onPokemonFainted, onPokemonSwitchIn, onRaidEnd, onTakeTurn, onTargeted, onTurnEnd, onUseAttackOther, shouldKeepFaintedPokemon, shouldSkipTurnAgainstOpponent, update
-
Field Details
-
CODEC
-
-
Constructor Details
-
TeraPokemonModifierRaidStrategy
public TeraPokemonModifierRaidStrategy()Creates an instance of aTeraPokemonModifierRaidStrategyrecord class.
-
-
Method Details
-
type
Description copied from interface:RaidStrategyGets the registered type used to serialize and deserialize this strategy.- Specified by:
typein interfaceRaidStrategy- Returns:
- The strategy type.
-
populatePokemon
- Specified by:
populatePokemonin interfacePokemonModifierRaidStrategy
-
applyMoveset
- Specified by:
applyMovesetin interfacePokemonModifierRaidStrategy
-
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.
-