限定符和类型 | 方法和说明 |
---|---|
int |
getBlockHeight()
得到这幅画的高度,单位:块
原文:Gets the height of the painting, in blocks
|
int |
getBlockWidth()
得到这幅画的宽度,单位:块
原文:Gets the width of the painting, in blocks
|
static Art |
getById(int id)
已过时。
Magic value
|
static Art |
getByName(java.lang.String name)
通过一幅画的唯一名称来获取这幅画,忽略大小写和下划线。
|
int |
getId()
已过时。
Magic value
|
static Art |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Art[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Art KEBAB
public static final Art AZTEC
public static final Art ALBAN
public static final Art AZTEC2
public static final Art BOMB
public static final Art PLANT
public static final Art WASTELAND
public static final Art POOL
public static final Art COURBET
public static final Art SEA
public static final Art SUNSET
public static final Art CREEBET
public static final Art WANDERER
public static final Art GRAHAM
public static final Art MATCH
public static final Art BUST
public static final Art STAGE
public static final Art VOID
public static final Art SKULL_AND_ROSES
public static final Art WITHER
public static final Art FIGHTERS
public static final Art POINTER
public static final Art PIGSCENE
public static final Art BURNING_SKULL
public static final Art SKELETON
public static final Art DONKEY_KONG
public static Art[] values()
for (Art c : Art.values()) System.out.println(c);
public static Art valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public int getBlockWidth()
原文:Gets the width of the painting, in blocks
public int getBlockHeight()
原文:Gets the height of the painting, in blocks
@Deprecated public int getId()
原文:Get the ID of this painting.
@Deprecated public static Art getById(int id)
原文:Get a painting by its numeric ID
id
- 画的IDpublic static Art getByName(java.lang.String name)
原文:Get a painting by its unique name.This ignores underscores and capitalization.
name
- 画的唯一名称