java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.battles.controller.ai.benchmark.puzzle.BattleAIPuzzle

public record BattleAIPuzzle(String id, boolean experimental, String category, List<String> reasoning, List<String> teamOne, List<String> teamTwo, PuzzleLogic type) extends Record
  • Field Details

    • REGISTRY

      public static final net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<BattleAIPuzzle>> REGISTRY
    • CODEC

      public static final com.mojang.serialization.Codec<BattleAIPuzzle> 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 a BattleAIPuzzle record class.
      Parameters:
      id - the value for the id record component
      experimental - the value for the experimental record component
      category - the value for the category record component
      reasoning - the value for the reasoning record component
      teamOne - the value for the teamOne record component
      teamTwo - the value for the teamTwo record component
      type - the value for the type record component
  • Method Details

    • generateTeamOne

      public List<Pokemon> generateTeamOne()
    • generateTeamTwo

      public List<Pokemon> generateTeamTwo()
    • passes

      public TestResult passes(net.minecraft.world.level.Level level)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • experimental

      public boolean experimental()
      Returns the value of the experimental record component.
      Returns:
      the value of the experimental record component
    • category

      public String category()
      Returns the value of the category record component.
      Returns:
      the value of the category record component
    • reasoning

      public List<String> reasoning()
      Returns the value of the reasoning record component.
      Returns:
      the value of the reasoning record component
    • teamOne

      public List<String> teamOne()
      Returns the value of the teamOne record component.
      Returns:
      the value of the teamOne record component
    • teamTwo

      public List<String> teamTwo()
      Returns the value of the teamTwo record component.
      Returns:
      the value of the teamTwo record component
    • type

      public PuzzleLogic type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component