use of com.destroystokyo.paper.ParticleBuilder in project Glowstone by GlowstoneMC.
the class GlowAreaEffectCloud method createSpawnMessage.
@Override
public List<Message> createSpawnMessage() {
MetadataMap metadataMap = new MetadataMap(GlowAreaEffectCloud.class);
metadataMap.set(MetadataIndex.AREAEFFECTCLOUD_COLOR, color);
metadataMap.set(MetadataIndex.AREAEFFECTCLOUD_RADIUS, radius);
if (particle != null) {
metadataMap.set(MetadataIndex.AREAEFFECTCLOUD_PARTICLE, new ParticleBuilder(particle));
}
return Arrays.asList(new SpawnObjectMessage(entityId, getUniqueId(), NETWORK_TYPE_ID, location), new EntityMetadataMessage(entityId, metadataMap.getEntryList()));
}
Aggregations