mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-21 15:59:26 +00:00
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Samsuik <40902469+Samsuik@users.noreply.github.com>
|
|
Date: Fri, 13 Oct 2023 20:01:48 +0100
|
|
Subject: [PATCH] isPushedByFluid API
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java
|
|
index 8bc6876c82935988436597161fa0ec94c032174b..43024ea9b578c7bf68d237cbca3c9603492fc0e0 100644
|
|
--- a/src/main/java/org/bukkit/entity/Entity.java
|
|
+++ b/src/main/java/org/bukkit/entity/Entity.java
|
|
@@ -106,6 +106,22 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
|
*/
|
|
public boolean isInWater();
|
|
|
|
+ // Sakura start
|
|
+ /**
|
|
+ * Gets if the entity will be pushed by fluid.
|
|
+ *
|
|
+ * @return if this entity can be pushed by fluid.
|
|
+ */
|
|
+ boolean isPushedByFluid();
|
|
+
|
|
+ /**
|
|
+ * Sets if the entity will be pushed by fluid.
|
|
+ *
|
|
+ * @param state whether entity should be pushed by fluid
|
|
+ */
|
|
+ void setPushedByFluid(boolean state);
|
|
+ // Sakura end
|
|
+
|
|
/**
|
|
* Gets the current world this entity resides in
|
|
*
|