程序包 org.bukkit
接口 Fluid
- 所有超级接口:
Comparable<Fluid>,Keyed,OldEnum<Fluid>,RegistryAware
Represents a fluid type.
-
字段概要
字段 -
方法概要
修饰符和类型方法说明getKey()已过时。已过时。only for backwards compatibility, useRegistry.get(NamespacedKey)instead.values()已过时。useIterable.iterator().从接口继承的方法 org.bukkit.registry.RegistryAware
getKeyOrNull, getKeyOrThrow, isRegistered
-
字段详细资料
-
EMPTY
No fluid. -
WATER
Stationary water. -
FLOWING_WATER
Flowing water. -
LAVA
Stationary lava. -
FLOWING_LAVA
Flowing lava.
-
-
方法详细资料
-
getKey
已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()instead.返回用于此对象的命名空间标识符.原文:Return the namespaced identifier for this object.
-
valueOf
已过时。only for backwards compatibility, useRegistry.get(NamespacedKey)instead.- 参数:
name- of the fluid.- 返回:
- the fluid with the given name.
-
values
已过时。useIterable.iterator().- 返回:
- an array of all known fluids.
-
RegistryAware.getKeyOrThrow()instead.