Record Class TeraBossActionRaidStrategy
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.battles.raids.tera.strategy.TeraBossActionRaidStrategy
- All Implemented Interfaces:
RaidStrategy
public record TeraBossActionRaidStrategy(List<TeraBossActionRaidStrategy.TeraBossAction> actions)
extends Record
implements RaidStrategy
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TeraBossActionRaidStrategy> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aTeraBossActionRaidStrategyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Returns the value of theactionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidonRaidStart(BattleParticipant boss) Called when the raid boss participant is initialized for battle.final StringtoString()Returns a string representation of this record class.type()Gets the registered type used to serialize and deserialize this strategy.voidupdate(BattleParticipant boss) Called from the raid boss participant tick.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.battles.raids.strategy.RaidStrategy
onAddStatus, onBattleAction, onBossAttack, onBossDamaged, onPokemonFainted, onPokemonSwitchIn, onRaidEnd, onTakeTurn, onTargeted, onTurnEnd, onUseAttackOther, onUseAttackPost, shouldKeepFaintedPokemon, shouldSkipTurnAgainstOpponent
-
Field Details
-
CODEC
-
-
Constructor Details
-
TeraBossActionRaidStrategy
Creates an instance of aTeraBossActionRaidStrategyrecord class.- Parameters:
actions- the value for theactionsrecord 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.
-
onRaidStart
Description copied from interface:RaidStrategyCalled when the raid boss participant is initialized for battle.Use this hook for battle-local setup such as boss modification, applying gimmicks, initializing context state, or preparing cached values.
- Specified by:
onRaidStartin interfaceRaidStrategy- Parameters:
boss- The raid boss participant.
-
update
Description copied from interface:RaidStrategyCalled from the raid boss participant tick.Use this for real-time behavior that is not tied to turn boundaries, such as Tera Raid timers or delayed revival.
- Specified by:
updatein interfaceRaidStrategy- Parameters:
boss- The raid boss participant.
-
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). -
actions
Returns the value of theactionsrecord component.- Returns:
- the value of the
actionsrecord component
-