2021-10-20 21:35:52 +00: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
|
|
|
|
Subject: [PATCH] Add ItemFactory#getMonsterEgg API
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/inventory/ItemFactory.java b/src/main/java/org/bukkit/inventory/ItemFactory.java
|
2022-02-12 13:20:33 +00:00
|
|
|
index 96f9481ca2f79dca525e0720e41a716bcebe0baf..6a4c4161adabb8e131761c2af4bdf1f26b52434d 100644
|
2021-10-20 21:35:52 +00:00
|
|
|
--- a/src/main/java/org/bukkit/inventory/ItemFactory.java
|
|
|
|
+++ b/src/main/java/org/bukkit/inventory/ItemFactory.java
|
2022-01-17 00:53:26 +00:00
|
|
|
@@ -244,5 +244,14 @@ public interface ItemFactory {
|
2021-10-20 21:35:52 +00: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 21:41:54 +00:00
|
|
|
+ * Get a spawn egg ItemStack from an EntityType
|
2021-10-20 21:35:52 +00:00
|
|
|
+ *
|
|
|
|
+ * @param type EntityType
|
|
|
|
+ * @return ItemStack spawner egg
|
|
|
|
+ */
|
|
|
|
+ @Nullable
|
2021-10-20 21:41:54 +00:00
|
|
|
+ ItemStack getSpawnEgg(@Nullable org.bukkit.entity.EntityType type);
|
2021-10-20 21:35:52 +00:00
|
|
|
// Paper end
|
|
|
|
}
|