public class PokemonRarity
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
PokemonSpecification |
pokemon |
int |
rarity |
Constructor and Description |
---|
PokemonRarity(PokemonSpecification pokemon,
int rarity) |
Modifier and Type | Method and Description |
---|---|
static void |
addToNbt(net.minecraft.nbt.CompoundNBT nbt,
java.util.List<PokemonRarity> rarities) |
static java.util.List<PokemonRarity> |
fromNbt(net.minecraft.nbt.CompoundNBT nbt) |
net.minecraft.util.ResourceLocation |
getSprite() |
static PokemonRarity |
readFromBuffer(net.minecraft.network.PacketBuffer buffer) |
void |
writeToBuffer(net.minecraft.network.PacketBuffer buffer) |
void |
writeToList(net.minecraft.nbt.ListNBT list) |
public PokemonSpecification pokemon
public int rarity
public PokemonRarity(PokemonSpecification pokemon, int rarity)
public void writeToBuffer(net.minecraft.network.PacketBuffer buffer)
public void writeToList(net.minecraft.nbt.ListNBT list)
public net.minecraft.util.ResourceLocation getSprite()
public static java.util.List<PokemonRarity> fromNbt(net.minecraft.nbt.CompoundNBT nbt)
public static void addToNbt(net.minecraft.nbt.CompoundNBT nbt, java.util.List<PokemonRarity> rarities)
public static PokemonRarity readFromBuffer(net.minecraft.network.PacketBuffer buffer)