mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-18 20:36:18 +00:00
SPIGOT-6527: Add AxolotlBucketMeta
This commit is contained in:
parent
2aff251627
commit
fc92ca8dd3
1 changed files with 39 additions and 0 deletions
|
@ -0,0 +1,39 @@
|
|||
package org.bukkit.inventory.meta;
|
||||
|
||||
import org.bukkit.entity.Axolotl;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* Represents a bucket of axolotl.
|
||||
*/
|
||||
public interface AxolotlBucketMeta extends ItemMeta {
|
||||
|
||||
/**
|
||||
* Get the variant of the axolotl in the bucket.
|
||||
* <p>
|
||||
* Plugins should check that hasVariant() returns <code>true</code> before
|
||||
* calling this method.
|
||||
* @return axolotl variant
|
||||
*/
|
||||
@NotNull
|
||||
Axolotl.Variant getVariant();
|
||||
|
||||
/**
|
||||
* Set the variant of this axolotl in the bucket.
|
||||
*
|
||||
* @param variant axolotl variant
|
||||
*/
|
||||
void setVariant(@NotNull Axolotl.Variant variant);
|
||||
|
||||
/**
|
||||
* Checks for existence of a variant tag indicating a specific axolotl will be
|
||||
* spawned.
|
||||
*
|
||||
* @return if there is a variant
|
||||
*/
|
||||
boolean hasVariant();
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
AxolotlBucketMeta clone();
|
||||
}
|
Loading…
Add table
Reference in a new issue