Class ItemRegistration

java.lang.Object
com.pixelmonmod.pixelmon.init.registry.ItemRegistration

public class ItemRegistration extends Object
Miscellaneous Pixelmon items.
  • Field Details

    • ITEMS

      public static final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.item.Item> ITEMS
    • mailTypes

      public static String[] mailTypes
      The types of Mail to register.
    • allItemMap

      @Deprecated public static Map<String,net.minecraft.world.item.Item> allItemMap
      Deprecated.
      A map of item names to Pixelmon items.
    • allItemList

      @Deprecated public static ArrayList<net.minecraft.world.item.Item> allItemList
      Deprecated.
      A list of all items in Pixelmon.
  • Constructor Details

    • ItemRegistration

      public ItemRegistration()
  • Method Details

    • initializePotionElixirList

      public static ArrayList<net.minecraft.world.item.Item> initializePotionElixirList()
      Creates a list of all Medicine.
      Returns:
      A list of all Medicine.
    • getAllItems

      public static List<net.minecraft.world.item.Item> getAllItems()
    • getItemsMap

      public static Map<String,net.minecraft.world.item.Item> getItemsMap()
      Initializes and returns a map of all pixelmon items.
      Returns:
      The map of all pixelmon items, name -> item.
    • getItemFromName

      public static net.minecraft.world.item.Item getItemFromName(String itemName)
      Finds a Pixelmon item from its localized name.
      Parameters:
      itemName - The name of the item.
      Returns:
      The item corresponding with the name, or null if there isn't one.
    • registerItemLayers

      public static void registerItemLayers()
    • registerRenderers

      public static void registerRenderers()
      Registers renderers for all Pixelmon items.
    • bakeModels

      public static void bakeModels(net.minecraftforge.client.event.ModelEvent.ModifyBakingResult event)
    • getMints

      public static List<net.minecraftforge.registries.RegistryObject<net.minecraft.world.item.Item>> getMints()
    • getGymSigns

      public static HashMap<String,net.minecraftforge.registries.RegistryObject<GymSignItem>> getGymSigns()