Class ItemRegistration
java.lang.Object
com.pixelmonmod.pixelmon.init.registry.ItemRegistration
Miscellaneous Pixelmon items.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
bakeModels
(net.minecraftforge.client.event.ModelEvent.ModifyBakingResult event) static List<net.minecraft.world.item.Item>
static HashMap<String,
net.minecraftforge.registries.RegistryObject<GymSignItem>> static net.minecraft.world.item.Item
getItemFromName
(String itemName) Finds a Pixelmon item from its localized name.Initializes and returns a map of all pixelmon items.static List<net.minecraftforge.registries.RegistryObject<net.minecraft.world.item.Item>>
getMints()
static ArrayList<net.minecraft.world.item.Item>
Creates a list of all Medicine.static void
static void
Registers renderers for all Pixelmon items.
-
Field Details
-
ITEMS
public static final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.item.Item> ITEMS -
mailTypes
The types of Mail to register. -
allItemMap
Deprecated.A map of item names to Pixelmon items. -
allItemList
Deprecated.A list of all items in Pixelmon.
-
-
Constructor Details
-
ItemRegistration
public ItemRegistration()
-
-
Method Details
-
initializePotionElixirList
Creates a list of all Medicine.- Returns:
- A list of all Medicine.
-
getAllItems
-
getItemsMap
Initializes and returns a map of all pixelmon items.- Returns:
- The map of all pixelmon items, name -> item.
-
getItemFromName
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()
-