Updated Upstream (Bukkit/CraftBukkit) (#8172)
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 23f557a0 SPIGOT-5380, SPIGOT-6958, PR-772: Add some missing entity API CraftBukkit Changes: fc3071161 SPIGOT-5380, SPIGOT-6958, PR-1085: Add some missing entity API
This commit is contained in:
parent
1e414c0753
commit
d6e0ab24da
14 changed files with 66 additions and 294 deletions
|
@ -242,42 +242,18 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ * @param faceplanted face planted
|
||||
+ */
|
||||
+ public void setFaceplanted(boolean faceplanted);
|
||||
+
|
||||
+ /**
|
||||
+ * Gets if the fox face planted.
|
||||
+ *
|
||||
+ * @return fox face planted
|
||||
+ */
|
||||
+ public boolean isFaceplanted();
|
||||
+ // Paper end - Add more fox behavior API
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/entity/Ghast.java b/src/main/java/org/bukkit/entity/Ghast.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Ghast.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Ghast.java
|
||||
@@ -0,0 +0,0 @@ package org.bukkit.entity;
|
||||
/**
|
||||
* Represents a Ghast.
|
||||
*/
|
||||
-public interface Ghast extends Flying {}
|
||||
+// Paper start
|
||||
+public interface Ghast extends Flying {
|
||||
+
|
||||
+ /**
|
||||
+ * Returns whether the ghast is charging an attack.
|
||||
+ *
|
||||
+ * @return whether the ghast is charging an attack
|
||||
+ */
|
||||
+ boolean isCharging();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets whether the ghast is charging an attack.
|
||||
+ * This determines whether the client displays the charging animation.
|
||||
+ *
|
||||
+ * @param charging whether the ghast is charging an attack
|
||||
+ */
|
||||
+ void setCharging(boolean charging);
|
||||
@@ -0,0 +0,0 @@ public interface Ghast extends Flying {
|
||||
* @param flag Whether the Ghast is charging
|
||||
*/
|
||||
void setCharging(boolean flag);
|
||||
+
|
||||
+ // Paper start
|
||||
+ /**
|
||||
+ * Returns the explosion power of shot fireballs.
|
||||
+ *
|
||||
|
@ -293,25 +269,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ */
|
||||
+ void setExplosionPower(int explosionPower);
|
||||
+ // Paper end
|
||||
+}
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/entity/Panda.java b/src/main/java/org/bukkit/entity/Panda.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Panda.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Panda.java
|
||||
@@ -0,0 +0,0 @@ import org.jetbrains.annotations.NotNull;
|
||||
/**
|
||||
* Panda entity.
|
||||
*/
|
||||
-public interface Panda extends Animals {
|
||||
+public interface Panda extends Animals, Sittable { // Paper
|
||||
@@ -0,0 +0,0 @@ public interface Panda extends Animals, Sittable {
|
||||
*/
|
||||
int getUnhappyTicks();
|
||||
|
||||
/**
|
||||
* Gets this Panda's main gene.
|
||||
@@ -0,0 +0,0 @@ public interface Panda extends Animals {
|
||||
return recessive;
|
||||
}
|
||||
}
|
||||
+
|
||||
+ // Paper start - Panda API
|
||||
+ /**
|
||||
+ * Sets the sneeze progress in this animation.
|
||||
|
@ -329,22 +295,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ int getSneezeTicks();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets if the panda is sneezing, which causes the sneeze counter to count.
|
||||
+ * <p>
|
||||
+ * When false, this will automatically set the sneeze ticks to 0.
|
||||
+ *
|
||||
+ * @param sneeze if the panda is sneezing or not
|
||||
+ */
|
||||
+ void setSneezing(boolean sneeze);
|
||||
+
|
||||
+ /**
|
||||
+ * Gets if the panda is sneezing
|
||||
+ *
|
||||
+ * @return is sneezing
|
||||
+ */
|
||||
+ boolean isSneezing();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets the eating ticks for this panda.
|
||||
+ * <p>
|
||||
+ *
|
||||
|
@ -371,39 +321,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ void setUnhappyTicks(int ticks);
|
||||
+
|
||||
+ /**
|
||||
+ * Gets how many ticks this panda will be unhappy for.
|
||||
+ *
|
||||
+ * @return unhappy ticks
|
||||
+ */
|
||||
+ int getUnhappyTicks();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets if this panda is currently rolling.
|
||||
+ *
|
||||
+ * @param rolling should roll
|
||||
+ */
|
||||
+ void setRolling(boolean rolling);
|
||||
+
|
||||
+ /**
|
||||
+ * Gets if this panda is currently rolling on the ground.
|
||||
+ *
|
||||
+ * @return is rolling
|
||||
+ */
|
||||
+ boolean isRolling();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets if this panda is currently on its back.
|
||||
+ *
|
||||
+ * @param onBack is on its back
|
||||
+ * @deprecated use {@link #setOnBack(boolean)}
|
||||
+ */
|
||||
+ void setIsOnBack(boolean onBack);
|
||||
+
|
||||
+ /**
|
||||
+ * Gets if this panda is currently on its back.
|
||||
+ *
|
||||
+ * @return is on back
|
||||
+ */
|
||||
+ boolean isOnBack();
|
||||
+ @Deprecated(forRemoval = true)
|
||||
+ default void setIsOnBack(boolean onBack) {
|
||||
+ this.setOnBack(onBack);
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
+ * Sets if this panda is currently sitting.
|
||||
|
@ -432,7 +358,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ @Override
|
||||
+ boolean isSitting();
|
||||
+ // Paper end - Panda API
|
||||
}
|
||||
+
|
||||
public enum Gene {
|
||||
|
||||
NORMAL(false),
|
||||
diff --git a/src/main/java/org/bukkit/entity/Piglin.java b/src/main/java/org/bukkit/entity/Piglin.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Piglin.java
|
||||
|
@ -672,33 +601,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ * @param value whether the wither can travel through portals
|
||||
+ */
|
||||
+ void setCanTravelThroughPortals(boolean value);
|
||||
+ // Paper end
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/entity/Wolf.java b/src/main/java/org/bukkit/entity/Wolf.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Wolf.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Wolf.java
|
||||
@@ -0,0 +0,0 @@ public interface Wolf extends Tameable, Sittable {
|
||||
* @param color the color to apply
|
||||
*/
|
||||
public void setCollarColor(@NotNull DyeColor color);
|
||||
+
|
||||
+ // Paper start
|
||||
+ /**
|
||||
+ * Sets if the wolf is interested.
|
||||
+ * <p>
|
||||
+ * This causes the wolf to tilt its head to the side.
|
||||
+ *
|
||||
+ * @param interested is interested
|
||||
+ */
|
||||
+ void setInterested(boolean interested);
|
||||
+
|
||||
+ /**
|
||||
+ * Gets if the wolf is interested.
|
||||
+ *
|
||||
+ * @return is interested
|
||||
+ */
|
||||
+ boolean isInterested();
|
||||
+ // Paper end
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/entity/ZombieVillager.java b/src/main/java/org/bukkit/entity/ZombieVillager.java
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue