Add methods to change entity physics (#10334)
This commit is contained in:
parent
0c76cbb7cc
commit
6a200a1663
11 changed files with 66 additions and 106 deletions
|
@ -11,6 +11,7 @@ Co-authored-by: booky10 <boooky10@gmail.com>
|
|||
Co-authored-by: Amin <amin.haddou@frg.wwschool.de>
|
||||
Co-authored-by: TrollyLoki <trollyloki@gmail.com>
|
||||
Co-authored-by: FireInstall <kettnerl@hu-berlin.de>
|
||||
Co-authored-by: maxcom1 <46265094+maxcom1@users.noreply.github.com>
|
||||
|
||||
diff --git a/src/main/java/io/papermc/paper/entity/SchoolableFish.java b/src/main/java/io/papermc/paper/entity/SchoolableFish.java
|
||||
new file mode 100644
|
||||
|
@ -423,7 +424,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
*/
|
||||
boolean isFrozen();
|
||||
|
||||
+ // Paper start - move invisibility up to Entity
|
||||
+ // Paper start - missing entity api
|
||||
+ /**
|
||||
+ * Sets whether the entity is invisible or not.
|
||||
+ * <p>
|
||||
|
@ -433,15 +434,29 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ *
|
||||
+ * @param invisible If the entity is invisible
|
||||
+ */
|
||||
+ void setInvisible(boolean invisible);
|
||||
+ void setInvisible(boolean invisible); // Paper - moved up from LivingEntity
|
||||
+
|
||||
+ /**
|
||||
+ * Gets whether the entity is invisible or not.
|
||||
+ *
|
||||
+ * @return Whether the entity is invisible
|
||||
+ */
|
||||
+ boolean isInvisible();
|
||||
+ // Paper end - move invisibility up to Entity
|
||||
+ boolean isInvisible(); // Paper - moved up from LivingEntity
|
||||
+
|
||||
+ /**
|
||||
+ * Sets this entities no physics status.
|
||||
+ *
|
||||
+ * @param noPhysics boolean indicating if the entity should not have physics.
|
||||
+ */
|
||||
+ void setNoPhysics(boolean noPhysics);
|
||||
+
|
||||
+ /**
|
||||
+ * Gets if this entity has no physics.
|
||||
+ *
|
||||
+ * @return true if the entity does not have physics.
|
||||
+ */
|
||||
+ boolean hasNoPhysics();
|
||||
+ // Paper end - missing entity api
|
||||
+
|
||||
/**
|
||||
* Mark the entity's removal.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue