Class MoveSkill

java.lang.Object
com.pixelmonmod.pixelmon.api.moveskills.MoveSkill

public class MoveSkill extends Object
Represents a usable move skill. All move skills are instances of this object.

Creating a new move skill can be done by adding it to the moveSkills list and using register(net.minecraft.server.level.ServerPlayer) when a player logs in.

Conversely, move skills can be unregistered by running unregister(net.minecraft.server.level.ServerPlayer) when a player logs in.

New move skills can be created without any client-side modding, but the icon selection is limited to those provided for Reforged's default move skills.

Since:
October 6, 2019
  • Field Details

    • moveSkills

      public static final List<MoveSkill> moveSkills
    • id

      public String id
    • name

      public String name
      The name of the move skill. In Reforged cases this is just a lang key.
    • descriptions

      public ArrayList<String> descriptions
      The description of the move skill. In Reforged cases this is just a series of lang keys.
    • sprite

      public net.minecraft.resources.ResourceLocation sprite
      The sprite that will be used in the GUIs.
    • cooldownTicks

      public int cooldownTicks
      The base time for the skill to require to cooldown.
    • range

      public int range
      The range at which this move skill can be used. This only applies for non-NOTHING target types.
    • anyMoves

      public Set<ImmutableAttack> anyMoves
    • combinationMoves

      public Set<ImmutableAttack> combinationMoves
    • ableSpecs

      public Set<PokemonSpecification> ableSpecs
    • intrinsicSpecs

      public Set<PokemonSpecification> intrinsicSpecs
    • usePP

      public boolean usePP
      Whether or not PP will be required and consumed by the successful use of this move skill.
    • behaviours

      All of the behaviours this move skill allows for different types of target.
  • Constructor Details

    • MoveSkill

      public MoveSkill(String id)
  • Method Details