类 ItemAbility
java.lang.Object
net.neoforged.neoforge.common.ItemAbility
-
字段概要
字段修饰符和类型字段说明private static final Map
<String, ItemAbility> static com.mojang.serialization.Codec
<ItemAbility> private final String
static StreamCodec
<io.netty.buffer.ByteBuf, ItemAbility> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static ItemAbility
Gets or creates a new ItemAbility for the given name.static Collection
<ItemAbility> Returns all registered actions.name()
Returns the name of this item abilitytoString()
-
字段详细资料
-
actions
-
CODEC
-
STREAM_CODEC
-
name
-
-
构造器详细资料
-
ItemAbility
Useget(String)
to get or create a ItemAbility
-
-
方法详细资料
-
getActions
Returns all registered actions. This collection can be kept around, and will update itself in response to changes to the map. SeeConcurrentHashMap.values()
for details. -
get
Gets or creates a new ItemAbility for the given name. -
name
Returns the name of this item ability -
toString
-