Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(entity instanceof EntityPixelmon)
- {
- EntityPixelmon pixelmon = (EntityPixelmon) entity;
- Pokemon pokemon = pixelmon.getPokemonData();
- String special = SpriteHelper.getSpriteExtra(pixelmon.getName(), pokemon.getForm());
- String pokemonId = pixelmon.getSpecies().getNationalPokedexNumber();
- ResourceLocation resource;
- if(pokemon.isShiny())
- {
- resource = GuiResources.shinySprite(pokemonId + special);
- } else {
- resource = GuiResources.sprite(pokemonId + special);
- }
- return resource;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement