mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-24 01:09:16 +00:00
Rewrite player fps settings
This commit is contained in:
33
patches/api/0004-isPushedByFluid-API.patch
Normal file
33
patches/api/0004-isPushedByFluid-API.patch
Normal file
@@ -0,0 +1,33 @@
|
||||
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 d0ae8a94db20281d3664d74718c65234eb2e5f83..cc4c1a60585f923dbe48c5432a425dec99ae22ff 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Entity.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Entity.java
|
||||
@@ -111,6 +111,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
|
||||
*
|
||||
Reference in New Issue
Block a user