Package net.neoforged.neoforge.common
Class ItemAbility
java.lang.Object
net.neoforged.neoforge.common.ItemAbility
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map
<String, ItemAbility> static com.mojang.serialization.Codec
<ItemAbility> private final String
static net.minecraft.network.codec.StreamCodec
<io.netty.buffer.ByteBuf, ItemAbility> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ItemAbility
(String name) Useget(String)
to get or create a ItemAbility -
Method Summary
Modifier and TypeMethodDescriptionstatic 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()
-
Field Details
-
actions
-
CODEC
-
STREAM_CODEC
public static net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,ItemAbility> STREAM_CODEC -
name
-
-
Constructor Details
-
ItemAbility
Useget(String)
to get or create a ItemAbility
-
-
Method Details
-
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
-