13
0
geforkt von Mirrors/Paper

SPIGOT-1292: BlockState based FlowerPot API.

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2016-06-01 17:08:06 +10:00
Ursprung 515b95570f
Commit bc69ab513e
2 geänderte Dateien mit 27 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -0,0 +1,23 @@
package org.bukkit.block;
import org.bukkit.material.MaterialData;
public interface FlowerPot extends BlockState {
/**
* Gets the item present in this flower pot.
*
* @return item present, or null for empty.
*/
MaterialData getContents();
/**
* Sets the item present in this flower pot.
*
* NOTE: The Vanilla Minecraft client will currently not refresh this until
* a block update is triggered.
*
* @param item new item, or null for empty.
*/
void setContents(MaterialData item);
}

Datei anzeigen

@ -6,7 +6,11 @@ import org.bukkit.TreeSpecies;
/**
* Represents a flower pot.
*
* @deprecated Flower pots are now tile entities, use
* {@link org.bukkit.block.FlowerPot}.
*/
@Deprecated
public class FlowerPot extends MaterialData {
/**