public class PokemonDropInformation
extends java.lang.Object
PokemonSpecification
Constructor and Description |
---|
PokemonDropInformation(com.google.gson.JsonObject jsonObject)
Json constructor
|
PokemonDropInformation(PokemonSpecification pokemonSpec,
ItemWithChance... items)
Basic constructor taking default values
|
Modifier and Type | Method and Description |
---|---|
void |
addDrop(ItemWithChance item)
Adds a drop for the spec
|
java.util.List<ItemWithChance> |
getDrops()
Gets the drops for said spec
|
java.util.List<net.minecraft.item.ItemStack> |
getDrops(AbstractHoldsItemsEntity pixelmon)
Gets the drops for a given entity using randomness
|
PokemonSpecification |
getPokemonSpec()
Gets the specification being matched
|
public PokemonDropInformation(com.google.gson.JsonObject jsonObject)
jsonObject
- The json being parsedpublic PokemonDropInformation(PokemonSpecification pokemonSpec, ItemWithChance... items)
pokemonSpec
- The spec matching the pokemonitems
- The items to droppublic PokemonSpecification getPokemonSpec()
public java.util.List<ItemWithChance> getDrops()
public void addDrop(ItemWithChance item)
item
- The new droppublic java.util.List<net.minecraft.item.ItemStack> getDrops(AbstractHoldsItemsEntity pixelmon)
pixelmon
- The entity