Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pmvirion/injectorutils
[PMMP][virion] A Plugin implement Utils.
https://github.com/pmvirion/injectorutils
avas pocketmine pocketmine-mp pocketmine-plugins vrion
Last synced: 3 months ago
JSON representation
[PMMP][virion] A Plugin implement Utils.
- Host: GitHub
- URL: https://github.com/pmvirion/injectorutils
- Owner: PMVirion
- License: mit
- Created: 2021-01-22T07:59:29.000Z (almost 4 years ago)
- Default Branch: stable
- Last Pushed: 2021-11-09T06:18:01.000Z (about 3 years ago)
- Last Synced: 2024-10-09T23:21:17.076Z (3 months ago)
- Topics: avas, pocketmine, pocketmine-mp, pocketmine-plugins, vrion
- Language: PHP
- Homepage:
- Size: 13.7 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# InjectorUtils
[PMMP] A Plugin implement Utils.# How Use?
## Injector Position Utils.
- A Position receives information in the form of a string.
```php
\skh6075\injectorutils\InjectorPositionUtils::posToHash(Position $position, int $type);
```- A Hash string is created as a Position class.
```php
\skh6075\injectorutils\InjectorPositionUtils::hashToPos(string $position, int $type);
```- The types of types are as follows.
```php
InjectorPositionUtils::TYPE_INTERVALInjectorPositionUtils::TYPE_FLOATVAL;
```## Injector Item Utils.
- Accept the name of the item.
```php
\skh6075\injectorutils\InjectorItemUtils::getItemName(Item $item);
```- A Item receives information in the form of a string.
```php
\skh6075\injectorutils\InjectorItemUtils::itemToHash(Item $item, bool $pushDamage, bool $pushCompoundTag);
```- A Hash string is created as a Item class.
```php
\skh6075\injectorutils\InjectorItemUtils::hashToItem(string $hash);
```## Injector Skin Utils.
- Receive the method of the Skin class as array.
```php
\skh6075\injectorutils\InjectorSkinUtils::skinToMap(Skin $skin);
```- Converts SkinMap to a Skin class.
```php
\skh6075\injectorutils\InjectorSkinUtils::mapToSkin(array $skinMap);
```- Converts Geometry data into a modeling Skin class.
```php
\skh6075\injectorutils\InjectorSkinUtils::makeGeometrySkin(Skin $skin, string $path, string $geometryName);
```