public class SimpleRibbonType extends java.lang.Object implements RibbonType
RibbonType
that has all the attributesModifier and Type | Class and Description |
---|---|
static class |
SimpleRibbonType.Builder |
Modifier and Type | Field and Description |
---|---|
protected net.minecraft.util.text.ITextComponent |
description |
protected ResourceWithFallback |
icon |
protected java.lang.String |
id |
protected PaletteProperties |
palette |
protected net.minecraft.util.text.ITextComponent |
prefix |
protected net.minecraft.util.text.ITextComponent |
suffix |
protected java.lang.String |
translationKey |
Modifier | Constructor and Description |
---|---|
protected |
SimpleRibbonType(java.lang.String id,
java.lang.String translationKey,
ResourceWithFallback icon,
net.minecraft.util.text.ITextComponent description,
net.minecraft.util.text.ITextComponent prefix,
net.minecraft.util.text.ITextComponent suffix,
PaletteProperties palette) |
Modifier and Type | Method and Description |
---|---|
static SimpleRibbonType.Builder |
builder() |
boolean |
equals(java.lang.Object obj) |
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 |
getTranslationKey() |
int |
hashCode() |
java.lang.String |
id()
The unique identifier of the ribbon type
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
onTick
getLocalizedName, getTranslatedName
protected final java.lang.String id
protected final java.lang.String translationKey
protected final ResourceWithFallback icon
protected final net.minecraft.util.text.ITextComponent description
protected final net.minecraft.util.text.ITextComponent prefix
protected final net.minecraft.util.text.ITextComponent suffix
protected final PaletteProperties palette
protected SimpleRibbonType(java.lang.String id, java.lang.String translationKey, ResourceWithFallback icon, net.minecraft.util.text.ITextComponent description, net.minecraft.util.text.ITextComponent prefix, net.minecraft.util.text.ITextComponent suffix, PaletteProperties palette)
public java.lang.String id()
RibbonType
id
in interface RibbonType
@Nonnull public ResourceWithFallback getIcon(Pokemon pokemon, Ribbon ribbon)
RibbonType
ResourceLocation
, which should be a texture (.png), that will show up in the ribbons UI.getIcon
in interface RibbonType
pokemon
- The pokemon being viewedribbon
- The ribbon getting the icon for@Nullable public net.minecraft.util.text.ITextComponent getNamePrefix(PixelmonEntity pixelmon, Ribbon ribbon)
RibbonType
getNamePrefix
in interface RibbonType
pixelmon
- The pixelmon entity being given a prefix in the worldribbon
- The ribbon applicable@Nullable public net.minecraft.util.text.ITextComponent getNameSuffix(PixelmonEntity pixelmon, Ribbon ribbon)
RibbonType
getNameSuffix
in interface RibbonType
pixelmon
- The pixelmon entity being given a suffix in the worldribbon
- The ribbon applicablepublic net.minecraft.util.text.ITextComponent getDescription()
RibbonType
getDescription
in interface RibbonType
@Nullable public PaletteProperties getPaletteOverride(PixelmonEntity pixelmon, Ribbon ribbon)
RibbonType
getPaletteOverride
in interface RibbonType
pixelmon
- The pixelmon entity being checked againstribbon
- The ribbon applicablepublic java.lang.String getTranslationKey()
getTranslationKey
in interface ITranslatable
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static SimpleRibbonType.Builder builder()