public interface RibbonType extends ITranslatable
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.text.ITextComponent |
getDescription()
Gets the description of the ribbon that will show up in the GUI when selected
|
ResourceWithFallback |
getIcon(Pokemon pokemon,
Ribbon ribbon)
Gets the
ResourceLocation , which should be a texture (.png), that will show up in the ribbons UI. |
net.minecraft.util.text.ITextComponent |
getNamePrefix(PixelmonEntity pixelmon,
Ribbon ribbon)
Gets the prefix that will be applied to the entity when they are in the world and this ribbon is applied.
|
net.minecraft.util.text.ITextComponent |
getNameSuffix(PixelmonEntity pixelmon,
Ribbon ribbon)
Gets the suffix that will be applied to the entity when they are in the world and this ribbon is applied.
|
PaletteProperties |
getPaletteOverride(PixelmonEntity pixelmon,
Ribbon ribbon)
Gets the override palette for the pixelmon entity when it is in the world.
|
java.lang.String |
id()
The unique identifier of the ribbon type
|
default void |
onTick(PixelmonEntity pixelmon,
Ribbon ribbon)
An event called when the Pokemon, with this ribbon type, applied ticks in the world
|
getLocalizedName, getTranslatedName, getTranslationKey
java.lang.String id()
@Nonnull ResourceWithFallback getIcon(Pokemon pokemon, Ribbon ribbon)
ResourceLocation
, which should be a texture (.png), that will show up in the ribbons UI.pokemon
- The pokemon being viewedribbon
- The ribbon getting the icon for@Nullable net.minecraft.util.text.ITextComponent getNamePrefix(PixelmonEntity pixelmon, Ribbon ribbon)
pixelmon
- The pixelmon entity being given a prefix in the worldribbon
- The ribbon applicable@Nullable net.minecraft.util.text.ITextComponent getNameSuffix(PixelmonEntity pixelmon, Ribbon ribbon)
pixelmon
- The pixelmon entity being given a suffix in the worldribbon
- The ribbon applicablenet.minecraft.util.text.ITextComponent getDescription()
@Nullable PaletteProperties getPaletteOverride(PixelmonEntity pixelmon, Ribbon ribbon)
pixelmon
- The pixelmon entity being checked againstribbon
- The ribbon applicabledefault void onTick(PixelmonEntity pixelmon, Ribbon ribbon)
pixelmon
- The pixelmon tickingribbon
- The ribbon applicable