Class PaletteProperties
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.palette.PaletteProperties
- All Implemented Interfaces:
ITranslatable
,Cloneable
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PaletteProperties>
protected final ModelLocator[]
protected final String
protected final net.minecraft.world.level.biome.AmbientParticleSettings
protected final List<net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent>>
protected final ResourceWithFallback
protected final String
-
Constructor Summary
ConstructorDescriptionPaletteProperties
(String name, String translationKey, 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 PaletteProperties
clone()
boolean
getModel
(AbstractClientEntity entity) Gets the model of the paletteGets the model locators of the palettegetName()
The name of thePalette
net.minecraft.world.level.biome.AmbientParticleSettings
Gets the particle to be played on the pokemon with this givenPalette
net.minecraft.sounds.SoundEvent
getSound()
net.minecraft.resources.ResourceLocation
Gets theResourceLocation
of the sprite textureGets theResourceWithFallback
of the sprite textureint
hashCode()
boolean
void
Preloads models for use on send outboolean
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatable
getLocalizedName, getTranslatedName
-
Field Details
-
CODEC
-
name
-
translationKey
-
modelLocators
-
sprite
-
sounds
-
particle
protected final net.minecraft.world.level.biome.AmbientParticleSettings particle
-
-
Constructor Details
-
PaletteProperties
public PaletteProperties(String name, String translationKey, 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
-
getTranslationKey
- Specified by:
getTranslationKey
in 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 theResourceLocation
of the sprite texture- Returns:
- The sprite location
-
getSpriteWithFallback
Gets theResourceWithFallback
of 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()
-