fix more compile errors
This commit is contained in:
@@ -1238,14 +1238,18 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * Gets the number of ticks that this hopper minecart cannot pickup items up for.
|
||||
+ *
|
||||
+ * @return ticks left on cooldown
|
||||
+ * @deprecated Hopper minecarts don't have cooldowns anymore
|
||||
+ */
|
||||
+ @Deprecated(forRemoval = true)
|
||||
+ int getPickupCooldown();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets the number of ticks that this hopper minecart cannot pickup items for.
|
||||
+ *
|
||||
+ * @param cooldown cooldown length in ticks
|
||||
+ * @deprecated Hopper minecarts don't have cooldowns anymore
|
||||
+ */
|
||||
+ @Deprecated(forRemoval = true)
|
||||
+ void setPickupCooldown(int cooldown);
|
||||
+ // Paper end
|
||||
}
|
||||
|
||||
@@ -243,10 +243,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
|
||||
+ // Paper start - Teleport API
|
||||
+ @org.jetbrains.annotations.ApiStatus.Experimental
|
||||
+ public PlayerTeleportEvent(@NotNull final Player player, @NotNull final Location from, @Nullable final Location to, @NotNull final TeleportCause cause, boolean dismounted, @NotNull java.util.Set<io.papermc.paper.entity.TeleportFlag.@NotNull Relative> teleportFlagSet) {
|
||||
+ public PlayerTeleportEvent(@NotNull final Player player, @NotNull final Location from, @Nullable final Location to, @NotNull final TeleportCause cause, @NotNull java.util.Set<io.papermc.paper.entity.TeleportFlag.@NotNull Relative> teleportFlagSet) {
|
||||
+ super(player, from, to);
|
||||
+
|
||||
+ this.dismounted = dismounted;
|
||||
+ this.teleportFlagSet = teleportFlagSet;
|
||||
+ this.cause = cause;
|
||||
+ }
|
||||
@@ -264,8 +262,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * Gets if the player will be dismounted in this teleportation.
|
||||
+ *
|
||||
+ * @return dismounted or not
|
||||
+ * @deprecated dismounting on tp is no longer controlled by the server
|
||||
+ */
|
||||
+ @org.jetbrains.annotations.ApiStatus.Experimental
|
||||
+ @Deprecated(forRemoval = true)
|
||||
+ public boolean willDismountPlayer() {
|
||||
+ return this.dismounted;
|
||||
+ }
|
||||
|
||||
Reference in New Issue
Block a user