Add API to send game events (#6444)

This commit is contained in:
Jake Potrebic
2021-08-21 07:26:42 -07:00
parent ebb3c9b96a
commit b3c84b4e7d
2 changed files with 32 additions and 0 deletions

View File

@@ -109,6 +109,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ */
+ @NotNull
+ Collection<Material> getInfiniburn();
+
+ /**
+ * Posts a specified game event at a location
+ *
+ * @param sourceEntity optional source entity
+ * @param gameEvent the game event to post
+ * @param position the position in the world where to post the event to listeners
+ */
+ void sendGameEvent(@Nullable Entity sourceEntity, @NotNull GameEvent gameEvent, @NotNull Vector position);
+ // Paper end
+
// Spigot start