Class PaletteProperties
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.palette.PaletteProperties
- All Implemented Interfaces:
ITranslatable,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PaletteProperties> protected final ModelLocator[]protected final Stringprotected final net.minecraft.world.level.biome.AmbientParticleSettingsprotected final List<net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent>> protected final ResourceWithFallbackprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionPaletteProperties(String name, String translationKey, List<String> tags, List<ModelLocator> modelLocators, ResourceWithFallback sprite, List<net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent>> sounds, Optional<net.minecraft.world.level.biome.AmbientParticleSettings> particleSettings) -
Method Summary
Modifier and TypeMethodDescriptionprotected PalettePropertiesclone()booleangetModel(AbstractClientEntity entity) Gets the model of the paletteGets the model locators of the palettegetName()The name of thePalettenet.minecraft.world.level.biome.AmbientParticleSettingsGets the particle to be played on the pokemon with this givenPalettenet.minecraft.sounds.SoundEventgetSound()net.minecraft.resources.ResourceLocationGets theResourceLocationof the sprite textureGets theResourceWithFallbackof the sprite textureinthashCode()booleanbooleanbooleanisShiny()voidPreloads models for use on send outbooleanMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatable
getLocalizedName, getTranslatedName
-
Field Details
-
CODEC
-
name
-
translationKey
-
tags
-
modelLocators
-
sprite
-
sounds
-
particle
protected final net.minecraft.world.level.biome.AmbientParticleSettings particle
-
-
Constructor Details
-
PaletteProperties
public PaletteProperties(String name, String translationKey, List<String> tags, List<ModelLocator> modelLocators, ResourceWithFallback sprite, List<net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent>> sounds, Optional<net.minecraft.world.level.biome.AmbientParticleSettings> particleSettings)
-
-
Method Details
-
clone
-
getName
The name of thePalette- Returns:
- The name
-
isShiny
public boolean isShiny() -
hasTag
-
getTranslationKey
- Specified by:
getTranslationKeyin interfaceITranslatable
-
preloadModels
public void preloadModels()Preloads models for use on send out -
getModelLocators
Gets the model locators of the palette- Returns:
- The PQC representations of the model
-
getModel
Gets the model of the palette- Returns:
- The model
-
getSprite
public net.minecraft.resources.ResourceLocation getSprite()Gets theResourceLocationof the sprite texture- Returns:
- The sprite location
-
getSpriteWithFallback
Gets theResourceWithFallbackof the sprite texture- Returns:
- The sprite location
-
getParticle
public net.minecraft.world.level.biome.AmbientParticleSettings getParticle()Gets the particle to be played on the pokemon with this givenPalette- Returns:
- The particles played
-
getSound
public net.minecraft.sounds.SoundEvent getSound() -
is
-
usingFallback
public boolean usingFallback() -
equals
-
hashCode
public int hashCode()
-