35 lines
850 B
Markdown
35 lines
850 B
Markdown
---
|
|
title: Advanced
|
|
type: docs
|
|
weight: 6
|
|
---
|
|
|
|
Advanced systems for networking, effects, and other specialized functionality.
|
|
|
|
{{< cards >}}
|
|
{{< card link="networking" title="Networking" subtitle="Network communication and protocols" icon="wifi" >}}
|
|
{{< card link="effects" title="Effects" subtitle="Particles, dynamic lights, and entity effects" icon="sparkles" >}}
|
|
{{< /cards >}}
|
|
|
|
## Networking
|
|
|
|
Network communication allows plugins to send custom data between server and clients:
|
|
|
|
```java
|
|
// Send custom packet
|
|
CustomPacket packet = new CustomPacket(data);
|
|
player.sendPacket(packet);
|
|
```
|
|
|
|
## Effects
|
|
|
|
Create visual effects using particles, lights, and entity animations:
|
|
|
|
```java
|
|
// Spawn particles
|
|
world.spawnParticles(ParticleType.SMOKE, position, count);
|
|
|
|
// Add dynamic light
|
|
entity.addComponent(new DynamicLight(Color.YELLOW, 10.0f));
|
|
```
|