Update to Minecraft 1.20.5

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2024-04-24 01:15:00 +10:00
parent 899f2acb84
commit f3502f6dac
54 changed files with 1814 additions and 741 deletions

View File

@@ -0,0 +1,43 @@
package org.bukkit.entity;
import org.bukkit.MinecraftExperimental;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Nullable;
/**
* Represents an ominous item spawner.
*/
@MinecraftExperimental
@ApiStatus.Experimental
public interface OminousItemSpawner extends Entity {
/**
* Gets the item which will be spawned by this spawner.
*
* @return the item
*/
@Nullable
ItemStack getItem();
/**
* Sets the item which will be spawned by this spawner.
*
* @param item the item
*/
void setItem(@Nullable ItemStack item);
/**
* Gets the ticks after which this item will be spawned.
*
* @return total spawn ticks
*/
long getSpawnItemAfterTicks();
/**
* Sets the ticks after which this item will be spawned.
*
* @param ticks total spawn ticks
*/
void setSpawnItemAfterTicks(long ticks);
}