public class SpriteItemHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FORM |
static java.lang.String |
GENDER |
static java.lang.String |
NDEX |
static java.lang.String |
PALETTE |
Constructor and Description |
---|
SpriteItemHelper() |
Modifier and Type | Method and Description |
---|---|
static net.minecraft.item.ItemStack |
getPhoto(PixelmonEntity pixelmon)
Gets a photo of a certain Pokémon.
|
static net.minecraft.item.ItemStack |
getPhoto(Pokemon pokemon)
Gets a photo of a certain Pokémon.
|
static java.util.Optional<Pokemon> |
getPokemon(net.minecraft.item.ItemStack stack)
Gets an instance of a Pokémon depicted by a photo.
|
static void |
requestUpdate(net.minecraft.item.ItemStack stack)
Requests the server for an update of a Pokémon photo ItemStack
|
static net.minecraft.item.ItemStack |
updateSprite(net.minecraft.item.ItemStack stack)
Updates a SpriteItem ItemStack to have a default form/palette if they are missing on serverside
|
public static final java.lang.String NDEX
public static final java.lang.String FORM
public static final java.lang.String GENDER
public static final java.lang.String PALETTE
public static net.minecraft.item.ItemStack getPhoto(PixelmonEntity pixelmon)
pixelmon
- The Pokémon to get a photo of.public static net.minecraft.item.ItemStack getPhoto(Pokemon pokemon)
pokemon
- The Pokémon to get a photo of.public static net.minecraft.item.ItemStack updateSprite(net.minecraft.item.ItemStack stack)
stack
- The Pokémon photo.public static void requestUpdate(net.minecraft.item.ItemStack stack)
stack
- The Pokémon photo.public static java.util.Optional<Pokemon> getPokemon(net.minecraft.item.ItemStack stack)
stack
- The Pokémon photo.