⚙️
T-MiniGameAPI
WebsiteDiscord
2.0.0
2.0.0
  • 🏠Home
  • 💻Maven and Gradle
  • 📦Minigame setup
  • 🖱️Plugins are using this libarary
  • Basic features
    • 🗺️Configuration
      • 🎯Configurators
      • 🔴Override Configuartors
    • 🧑Models
      • 📦File model
        • 🟢Single file
        • 🟠Many files
      • 🧑‍🦱Users
    • 📔Loaders
      • 📗Loader
        • 📂File loader
  • Minigame features
    • 🅰️Arena system
      • 🟢Arena
      • 🔵ArenaManager
    • 🎮Game system
      • 🔴Game Manager
      • 🔵Game State
      • 🟡Users in game
      • 🟢Teams
    • ⏰Timers
      • 😀SimpleTimer
      • ✨XpTimer
    • 🪙Coins system
      • 🟢UserCoins
      • 🔵UserCoinsManager
    • ✨Statistics system
      • 🟢Default statistics system
      • 🔵Your own statistics system
    • 💥Cosmetics system
      • 📀Cosmetic
        • 💕ParticleCosmetic
      • ✳️Cosmetics Manager
      • 🧒Users' cosmetics
        • 💿UserCosmeticsManager
        • ✅UserCosmetics
  • Modules
    • 🔌What is module ?
    • 🗒️Modules list
    • Internal Modules
      • Commands Module
        • 🧔Parent commands
        • 🧒Sub commands
        • 📑Tab completer
        • ®️Command registration
      • SQL Module
        • 💡DbModel
        • SQLDatabaseDao
        • 💾Database loader
        • SQLDatabaseAdapter
        • SQLDatabaseMigrator
      • MongoDB Module
        • MongoDbConnector
        • 💡MongoDbModel
        • MongoDbDao
        • 💾MongoDb loader
    • 💾How to create module?
Powered by GitBook
On this page
  1. Minigame features
  2. Cosmetics system
  3. Cosmetic

ParticleCosmetic

This type of cosmetic represents cosmetics with particles.

Cosmetic must be registered in the main class.

The cosmetic has two methods: getName and show.

It is recommended name: (CATEGORY_NAME_COSMETIC_NAME) e.g. HIT_HEART

The particle cosmetic has the same methods as Cosmetic but has some differences.

Particle cosmetics methods:

Particle getParticle(); //Gets particle
int getParticleHeight(); //Gets height to add to y coordinate for particle's spawn location

ParticleCosmetic has overridden the show method, by default this method shows particle for everyone

How to create custom particle cosmetics?

public class MyParticleCosmetic implements ParticleCosmetic {

 @Override
 public String getName() {
    return "MY_PARTICLE_COSEMTIC_NAME"
 }
 
  @Override
  public int getParticleHeight() {
     return 1; 
  }
  
  @Override
  public Particle getParticle() {
    return Particle.HEART;
  }

}
PreviousCosmeticNextCosmetics Manager
💥
📀
💕