Support spawning item stacks

This commit is contained in:
Mariell Hoversholm
2020-11-14 19:11:20 +01:00
parent d0f7408554
commit 542d7df36b
2 changed files with 41 additions and 0 deletions

View File

@@ -25,5 +25,17 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ * Resets the spawn delay timer within the min/max range
+ */
+ public void resetTimer();
+
+ /**
+ * Sets the {@link EntityType} to {@link EntityType#DROPPED_ITEM} and sets the data to the given
+ * {@link org.bukkit.inventory.ItemStack ItemStack}.
+ * <p>
+ * {@link #setSpawnCount(int)} does not dictate the amount of items in the stack spawned, but rather how many
+ * stacks should be spawned.
+ *
+ * @param itemStack The item to spawn. Must not {@link org.bukkit.Material#isAir be air}.
+ * @see #setSpawnedType(EntityType)
+ */
+ void setSpawnedItem(@NotNull org.bukkit.inventory.ItemStack itemStack);
+ // Paper end
}