Files
DeltaZern/paper-api/src/main/java/org/bukkit/block/CreatureSpawner.java
T
2024-11-25 07:52:33 +11:00

31 lines
828 B
Java

package org.bukkit.block;
import org.bukkit.spawner.Spawner;
import org.jetbrains.annotations.Nullable;
/**
* Represents a captured state of a creature spawner.
*/
public interface CreatureSpawner extends TileState, Spawner {
/**
* Set the spawner mob type.
*
* @param creatureType The creature type's name or null to clear.
* @deprecated magic value, use
* {@link #setSpawnedType(org.bukkit.entity.EntityType)}.
*/
@Deprecated(since = "1.11.2")
public void setCreatureTypeByName(@Nullable String creatureType);
/**
* Get the spawner's creature type.
*
* @return The creature type's name if is set.
* @deprecated magic value, use {@link #getSpawnedType()}.
*/
@Deprecated(since = "1.11.2")
@Nullable
public String getCreatureTypeName();
}