sky-min / ImageToParticle

ImageToParticle

Home Page:https://poggit.pmmp.io/p/ImageParticle/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Todo

  • roll
  • yaw pitch equal to entity yaw pitch

how to use

  1. In resource_packages.yml, change force_resources to true.
  2. this plugin load
  3. image file put at plugin_data/ImageParticle/image/
  4. Enter a file name at plugin_data/ImageParticle/Images.yml
  5. server reboot

plugin_data example

API

registerImageParticle

use skymin\ImageParticle\particle\ImageParticleAPI;

/** @see skymin\ImageParticle\utils\ImageTypes for $imageType*/
ImageParticleAPI::getInstance()->registerImage(string $name, string $imageFile, int $imageType);

sendImageParticle

use skymin\ImageParticle\particle\ImageParticleAPI;
use skymin\ImageParticle\particle\EulerAngle;

ImageParticleAPI::getInstance()->sendParticle(string $name, EulerAngle $center, int $count, float $unit, bool $asyncEncode);

About

ImageToParticle

https://poggit.pmmp.io/p/ImageParticle/

License:MIT License


Languages

Language:PHP 100.0%