Record Class BattleAIPuzzle
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.battles.controller.ai.benchmark.puzzle.BattleAIPuzzle
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BattleAIPuzzle> static final net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<BattleAIPuzzle>> -
Constructor Summary
ConstructorsConstructorDescriptionBattleAIPuzzle(String id, boolean experimental, String category, List<String> reasoning, List<String> teamOne, List<String> teamTwo, PuzzleLogic type) Creates an instance of aBattleAIPuzzlerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexperimentalrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.passes(net.minecraft.world.level.Level level) Returns the value of thereasoningrecord component.teamOne()Returns the value of theteamOnerecord component.teamTwo()Returns the value of theteamTworecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
REGISTRY
public static final net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<BattleAIPuzzle>> REGISTRY -
CODEC
-
-
Constructor Details
-
BattleAIPuzzle
public BattleAIPuzzle(String id, boolean experimental, String category, List<String> reasoning, List<String> teamOne, List<String> teamTwo, PuzzleLogic type) Creates an instance of aBattleAIPuzzlerecord class.- Parameters:
id- the value for theidrecord componentexperimental- the value for theexperimentalrecord componentcategory- the value for thecategoryrecord componentreasoning- the value for thereasoningrecord componentteamOne- the value for theteamOnerecord componentteamTwo- the value for theteamTworecord componenttype- the value for thetyperecord component
-
-
Method Details
-
generateTeamOne
-
generateTeamTwo
-
passes
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
experimental
public boolean experimental()Returns the value of theexperimentalrecord component.- Returns:
- the value of the
experimentalrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
reasoning
Returns the value of thereasoningrecord component.- Returns:
- the value of the
reasoningrecord component
-
teamOne
Returns the value of theteamOnerecord component.- Returns:
- the value of the
teamOnerecord component
-
teamTwo
Returns the value of theteamTworecord component.- Returns:
- the value of the
teamTworecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-