public class PaletteProperties extends java.lang.Object implements java.lang.Cloneable, ITranslatable
Modifier and Type | Field and Description |
---|---|
protected ResourceWithFallback |
emissive |
protected ModelLocator[] |
modelLocators |
protected java.lang.String |
name |
protected PaletteParticles |
particle |
protected ResourceWithFallback |
sprite |
protected ResourceWithFallback |
texture |
protected java.lang.String |
translationKey |
Modifier | Constructor and Description |
---|---|
protected |
PaletteProperties() |
|
PaletteProperties(java.lang.String name,
java.lang.String translationKey,
ModelLocator[] modelLocators,
ResourceWithFallback texture,
ResourceWithFallback emissive,
ResourceWithFallback sprite,
PaletteParticles particle)
Default constructor taking parameters for the aspects that can be modified
|
Modifier and Type | Method and Description |
---|---|
void |
addSound(net.minecraft.util.SoundEvent sound) |
PaletteProperties |
clone() |
boolean |
equals(java.lang.Object o) |
net.minecraft.util.ResourceLocation |
getEmissiveTexture()
Gets the
ResourceLocation of the emissive pokemon texture
Will return null if non existant |
PixelmonModelHolder<?> |
getModel(AbstractClientEntity entity)
Gets the model of the palette
|
ModelLocator[] |
getModelLocators()
Gets the model locators of the palette
|
java.lang.String |
getName()
The name of the
Palette |
PaletteParticles |
getParticle()
Gets the particle to be played on the pokemon with this given
Palette |
java.lang.String |
getParticleString() |
net.minecraft.util.SoundEvent |
getSound() |
net.minecraft.util.ResourceLocation |
getSprite()
Gets the
ResourceLocation of the sprite texture |
net.minecraft.util.ResourceLocation |
getTexture()
Gets the
ResourceLocation of the new pokemon texture |
java.lang.String |
getTranslationKey() |
boolean |
hasEmissiveTexture()
Checks if the emissive texture exists
|
int |
hashCode() |
void |
initModels()
Initializes model locators.
|
boolean |
is(java.lang.String palette) |
void |
preloadModels()
Preloads models for use on send out
|
protected void |
resetSounds() |
void |
setEmissive(ResourceWithFallback emissive) |
void |
setSprite(ResourceWithFallback sprite) |
void |
setTexture(ResourceWithFallback texture) |
boolean |
usingFallback() |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getLocalizedName, getTranslatedName
protected java.lang.String name
protected java.lang.String translationKey
protected ModelLocator[] modelLocators
protected ResourceWithFallback texture
protected ResourceWithFallback sprite
protected ResourceWithFallback emissive
protected PaletteParticles particle
protected PaletteProperties()
public PaletteProperties(java.lang.String name, java.lang.String translationKey, ModelLocator[] modelLocators, ResourceWithFallback texture, ResourceWithFallback emissive, ResourceWithFallback sprite, PaletteParticles particle)
name
- texture
- The new texturesprite
- particle
- The particle effect played on the pokemon with this Palette
public PaletteProperties clone()
clone
in class java.lang.Object
public java.lang.String getName()
Palette
public java.lang.String getTranslationKey()
getTranslationKey
in interface ITranslatable
public void preloadModels()
public ModelLocator[] getModelLocators()
public PixelmonModelHolder<?> getModel(AbstractClientEntity entity)
public void initModels()
public net.minecraft.util.ResourceLocation getSprite()
ResourceLocation
of the sprite texturepublic net.minecraft.util.ResourceLocation getTexture()
ResourceLocation
of the new pokemon texturepublic boolean hasEmissiveTexture()
public net.minecraft.util.ResourceLocation getEmissiveTexture()
ResourceLocation
of the emissive pokemon texture
Will return null if non existantpublic PaletteParticles getParticle()
Palette
public java.lang.String getParticleString()
public void addSound(net.minecraft.util.SoundEvent sound)
public net.minecraft.util.SoundEvent getSound()
protected void resetSounds()
public void setTexture(ResourceWithFallback texture)
public void setSprite(ResourceWithFallback sprite)
public boolean is(java.lang.String palette)
public void setEmissive(ResourceWithFallback emissive)
public boolean usingFallback()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object