Record Class TeraBossTierRaidStrategy
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.battles.raids.tera.strategy.TeraBossTierRaidStrategy
- All Implemented Interfaces:
BossTierRaidStrategy,RaidStrategy
public record TeraBossTierRaidStrategy(String bossTier)
extends Record
implements BossTierRaidStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TeraBossTierRaidStrategy> -
Constructor Summary
ConstructorsConstructorDescriptionTeraBossTierRaidStrategy(String bossTier) Creates an instance of aTeraBossTierRaidStrategyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyBossTier(BattleParticipant boss, PixelmonWrapper wrapper) bossTier()Returns the value of thebossTierrecord 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.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.BossTierRaidStrategy
onPokemonSwitchIn, onRaidStartMethods inherited from interface com.pixelmonmod.pixelmon.battles.raids.strategy.RaidStrategy
onAddStatus, onBattleAction, onBossAttack, onBossDamaged, onPokemonFainted, onRaidEnd, onTakeTurn, onTargeted, onTurnEnd, onUseAttackOther, onUseAttackPost, shouldKeepFaintedPokemon, shouldSkipTurnAgainstOpponent, update
-
Field Details
-
CODEC
-
-
Constructor Details
-
TeraBossTierRaidStrategy
Creates an instance of aTeraBossTierRaidStrategyrecord class.- Parameters:
bossTier- the value for thebossTierrecord component
-
-
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.
-
applyBossTier
- Specified by:
applyBossTierin interfaceBossTierRaidStrategy
-
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). -
bossTier
Returns the value of thebossTierrecord component.- Returns:
- the value of the
bossTierrecord component
-