while some of these may of been true, they are extreme cases and cause a ton of noise to plugin developers. Use ApiStatus.Internal instead of Deprecated for actual internal API that continues to have use (internally). These do not help plugin developers if they bring moise noise than value.
42 lines
939 B
Java
42 lines
939 B
Java
package org.bukkit.entity;
|
|
|
|
import org.bukkit.inventory.ItemStack;
|
|
import org.jetbrains.annotations.ApiStatus;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/**
|
|
* Represents an ominous item spawner.
|
|
*/
|
|
@ApiStatus.Experimental
|
|
public interface OminousItemSpawner extends Entity {
|
|
|
|
/**
|
|
* Gets the item which will be spawned by this spawner.
|
|
*
|
|
* @return the item
|
|
*/
|
|
@org.jetbrains.annotations.NotNull // Paper
|
|
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);
|
|
}
|