2021-10-20 23:35:52 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
|
|
Date: Thu, 14 Oct 2021 12:09:28 -0500
|
2022-11-20 00:53:20 +01:00
|
|
|
Subject: [PATCH] Add ItemFactory#getSpawnEgg API
|
2021-10-20 23:35:52 +02:00
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/inventory/ItemFactory.java b/src/main/java/org/bukkit/inventory/ItemFactory.java
|
2023-05-12 13:10:08 +02:00
|
|
|
index 11e59068b8a8ef1128e3c75283d161c39e2a3a99..67d3105258fe4e8165a662dd65bc501b30fcff51 100644
|
2021-10-20 23:35:52 +02:00
|
|
|
--- a/src/main/java/org/bukkit/inventory/ItemFactory.java
|
|
|
|
+++ b/src/main/java/org/bukkit/inventory/ItemFactory.java
|
2023-04-16 03:13:59 +02:00
|
|
|
@@ -263,5 +263,14 @@ public interface ItemFactory {
|
2021-10-20 23:35:52 +02:00
|
|
|
@NotNull
|
|
|
|
@Deprecated
|
|
|
|
net.md_5.bungee.api.chat.hover.content.Content hoverContentOf(@NotNull org.bukkit.entity.Entity entity, @NotNull net.md_5.bungee.api.chat.BaseComponent[] customName);
|
|
|
|
+
|
|
|
|
+ /**
|
2021-10-20 23:41:54 +02:00
|
|
|
+ * Get a spawn egg ItemStack from an EntityType
|
2021-10-20 23:35:52 +02:00
|
|
|
+ *
|
|
|
|
+ * @param type EntityType
|
|
|
|
+ * @return ItemStack spawner egg
|
|
|
|
+ */
|
|
|
|
+ @Nullable
|
2021-10-20 23:41:54 +02:00
|
|
|
+ ItemStack getSpawnEgg(@Nullable org.bukkit.entity.EntityType type);
|
2021-10-20 23:35:52 +02:00
|
|
|
// Paper end
|
|
|
|
}
|