public class DropItemRegistry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Map<Species,java.util.Set<PokemonDropInformation>> |
pokemonDrops |
static java.util.HashMap<java.lang.Integer,java.util.HashMap<Element,WeightedItemStacks>> |
raidDrops |
static java.util.ArrayList<net.minecraft.item.ItemStack> |
tier1
A list of tier 1 special drops.
|
static java.util.ArrayList<net.minecraft.item.ItemStack> |
tier2
A list of tier 2 special drops.
|
static java.util.ArrayList<net.minecraft.item.ItemStack> |
tier3
A list of tier 3 special drops.
|
static java.util.ArrayList<net.minecraft.item.ItemStack> |
ultraSpace
A list of ultra space special drops.
|
Constructor and Description |
---|
DropItemRegistry() |
Modifier and Type | Method and Description |
---|---|
static void |
clearDrops() |
static java.util.List<net.minecraft.item.ItemStack> |
getDropsForPokemon(AbstractHoldsItemsEntity pixelmon)
Gets a list of the items that a Pokémon will drop.
|
static net.minecraft.item.ItemStack |
getTier1Drop()
Gets a random tier 1 special drop.
|
static net.minecraft.item.ItemStack |
getTier2Drop()
Gets a random tier 2 special drop.
|
static net.minecraft.item.ItemStack |
getTier3Drop()
Gets a random tier 3 special drop.
|
static net.minecraft.item.ItemStack |
getUltraSpaceDrop()
Gets a random ultra space special drop.
|
static net.minecraft.item.ItemStack |
parseItem(java.lang.String name)
Finds an item from its item ID.
|
static void |
registerDropItems(net.minecraft.util.ResourceLocation rl,
com.google.gson.JsonElement json)
Registers special drop data from drops.json.
|
public static java.util.ArrayList<net.minecraft.item.ItemStack> tier1
public static java.util.ArrayList<net.minecraft.item.ItemStack> tier2
public static java.util.ArrayList<net.minecraft.item.ItemStack> tier3
public static java.util.ArrayList<net.minecraft.item.ItemStack> ultraSpace
public static java.util.Map<Species,java.util.Set<PokemonDropInformation>> pokemonDrops
public static java.util.HashMap<java.lang.Integer,java.util.HashMap<Element,WeightedItemStacks>> raidDrops
public static void clearDrops()
public static void registerDropItems(net.minecraft.util.ResourceLocation rl, com.google.gson.JsonElement json)
public static net.minecraft.item.ItemStack getTier1Drop()
public static net.minecraft.item.ItemStack getTier2Drop()
public static net.minecraft.item.ItemStack getTier3Drop()
public static net.minecraft.item.ItemStack getUltraSpaceDrop()
public static java.util.List<net.minecraft.item.ItemStack> getDropsForPokemon(AbstractHoldsItemsEntity pixelmon)
pixelmon
- The Pokémon to get drops for.public static net.minecraft.item.ItemStack parseItem(java.lang.String name)
name
- The item ID of the item.