接口 MapMeta

所有超级接口:
Cloneable, ConfigurationSerializable, ItemMeta

public interface MapMeta extends ItemMeta
代表可被伸缩的地图.
  • 方法详细资料

    • isScaling

      boolean isScaling()
      检测这个地图是否有缩放比例.

      原文:Checks to see if this map is scaling.

      返回:
      true表地图有缩放比例
    • setScaling

      void setScaling(boolean value)
      设置这个地图是否有缩放比例.

      原文:Sets if this map is scaling or not.

      参数:
      value - true表示可缩放
    • hasLocationName

      boolean hasLocationName()
      Checks for existence of a location name.
      返回:
      true if this has a location name
    • getLocationName

      String getLocationName()
      Gets the location name that is set.

      Plugins should check that hasLocationName() returns true before calling this method.

      返回:
      the location name that is set
    • setLocationName

      void setLocationName(String name)
      Sets the location name. A custom map color will alter the display of the map in an inventory slot.
      参数:
      name - the name to set
    • hasColor

      boolean hasColor()
      Checks for existence of a map color.
      返回:
      true if this has a custom map color
    • getColor

      Color getColor()
      Gets the map color that is set. A custom map color will alter the display of the map in an inventory slot.

      Plugins should check that hasColor() returns true before calling this method.

      返回:
      the map color that is set
    • setColor

      void setColor(Color color)
      Sets the map color. A custom map color will alter the display of the map in an inventory slot.
      参数:
      color - the color to set
    • clone

      MapMeta clone()
      指定者:
      clone 在接口中 ItemMeta