aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0232-Add-API-to-get-Material-from-Boats-and-Minecarts.patch
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2024-04-25 22:47:32 +0200
committerNassim Jahnke <[email protected]>2024-04-25 22:47:32 +0200
commited790385edc019359da399973fb0180318109b93 (patch)
tree3ea00a5d3889287baa055a4b36e1356f44a4217e /patches/api/0232-Add-API-to-get-Material-from-Boats-and-Minecarts.patch
parent8d3759d4a542839defbf90c9d7bf4aadbb52cece (diff)
downloadPaper-ed790385edc019359da399973fb0180318109b93.tar.gz
Paper-ed790385edc019359da399973fb0180318109b93.zip
More compile fixes
Diffstat (limited to 'patches/api/0232-Add-API-to-get-Material-from-Boats-and-Minecarts.patch')
-rw-r--r--patches/api/0232-Add-API-to-get-Material-from-Boats-and-Minecarts.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/patches/api/0232-Add-API-to-get-Material-from-Boats-and-Minecarts.patch b/patches/api/0232-Add-API-to-get-Material-from-Boats-and-Minecarts.patch
new file mode 100644
index 0000000000..d297dd5c24
--- /dev/null
+++ b/patches/api/0232-Add-API-to-get-Material-from-Boats-and-Minecarts.patch
@@ -0,0 +1,51 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Madeline Miller <[email protected]>
+Date: Thu, 31 Dec 2020 12:48:38 +1000
+Subject: [PATCH] Add API to get Material from Boats and Minecarts
+
+
+diff --git a/src/main/java/org/bukkit/entity/Boat.java b/src/main/java/org/bukkit/entity/Boat.java
+index 88852215d01f3fc4866449f7b826f6603b0ed9d8..f7548098bcdd033d9c530fdc584fc5538c635ca1 100644
+--- a/src/main/java/org/bukkit/entity/Boat.java
++++ b/src/main/java/org/bukkit/entity/Boat.java
+@@ -175,4 +175,14 @@ public interface Boat extends Vehicle {
+ ON_LAND,
+ IN_AIR;
+ }
++
++ // Paper start
++ /**
++ * Gets the {@link Material} that represents this Boat type.
++ *
++ * @return the boat material.
++ */
++ @NotNull
++ public Material getBoatMaterial();
++ // Paper end
+ }
+diff --git a/src/main/java/org/bukkit/entity/Minecart.java b/src/main/java/org/bukkit/entity/Minecart.java
+index 7f9c4d4b430a3f0276461346ff2621bacf864075..bc1e62759c995a1463ebcd10d73c7d502c9acc45 100644
+--- a/src/main/java/org/bukkit/entity/Minecart.java
++++ b/src/main/java/org/bukkit/entity/Minecart.java
+@@ -1,5 +1,6 @@
+ package org.bukkit.entity;
+
++import org.bukkit.Material;
+ import org.bukkit.block.data.BlockData;
+ import org.bukkit.material.MaterialData;
+ import org.bukkit.util.Vector;
+@@ -147,4 +148,14 @@ public interface Minecart extends Vehicle {
+ * @return the current block offset for this minecart.
+ */
+ public int getDisplayBlockOffset();
++
++ // Paper start
++ /**
++ * Gets the {@link Material} that represents this Minecart type.
++ *
++ * @return the minecart material.
++ */
++ @NotNull
++ public Material getMinecartMaterial();
++ // Paper end
+ }