kalculos / AstralFlow

The plugin featurize your spigot servers.
https://af.ib67.io/docs
GNU Lesser General Public License v2.1
25 stars 4 forks source link

[FEAT] Add hasMachine(Location,Type) to AstralHelper #198

Closed iceBear67 closed 2 years ago

iceBear67 commented 2 years ago

It's common to identify blocks and machines and handle them differently in events. Currently, AstralHelper provided an utility method called hasMachine(Loc/Block) but it cannot match types of machines explictly.

Therefore, add hasMachine(Location,Type) to AstralHelper.