Interface FlowerPot

  • All Superinterfaces:
    BlockState, Metadatable

    @Deprecated
    public interface FlowerPot
    extends BlockState
    Deprecated.
    not a tile entity in future versions of Minecraft
    Represents a captured state of a flower pot.
    • Method Detail

      • getContents

        @Nullable
        MaterialData getContents()
        Deprecated.
        Gets the item present in this flower pot.
        Returns:
        item present, or null for empty.
      • setContents

        void setContents​(@Nullable
                         MaterialData item)
        Deprecated.
        Sets the item present in this flower pot. NOTE: The Vanilla Minecraft client will currently not refresh this until a block update is triggered.
        Parameters:
        item - new item, or null for empty.