😍
HCore wiki
  • Starting
    • Initializing
  • Configs
    • Configs
  • Entities
    • NPC
    • Particles
    • Renderers
    • Holograms
  • Messaging
    • Command System
    • Scoreboards
    • Spam System
    • Messagings
    • Packets
  • Others
    • ItemBuilder
    • World Borders
    • Event Subscriber
    • Inventories
    • Database Management
Powered by GitBook
On this page
  • HCore#playParticle(player, HParticle)
  • HCore#playParticle(location, HParticle)
  • HCore#playParticle(player, location, HParticle)
  • HCore#playParticle(Collection<Player>, location, HParticle)
  • Example code
  1. Entities

Particles

hCore allows you to send particles in any place you want.

HCore#playParticle(player, HParticle)

Plays provided particle for provided player.

HCore#playParticle(location, HParticle)

Plays provided particle for everyone in provided location.

HCore#playParticle(player, location, HParticle)

Plays provided particle for provided player in provided location.

HCore#playParticle(Collection<Player>, location, HParticle)

Plays provided particle for provided players in provided location.

Example code

HParticle myParticle = new HParticle(HParticleType.ASH, 30, 0.2, new Vector(0.3, 0.3, 0.3); // creates a new HParticle which uses "HEART" particle as template
HCore.playParticle(player, player.getLocation(), myParticle); // plays the particle at player's location
PreviousNPCNextRenderers

Last updated 2 years ago