You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* <p>Note: some components, for example {@code minecraft:rarity} and {@code minecraft:attribute_modifiers}, are translated automatically, and do not have to be specified here.
153
153
* Components that are added here cannot be removed in {@link CustomItemDefinition#removedComponents()}.</p>
154
154
*
155
-
* @see ItemDataComponents
155
+
* @see JavaItemDataComponents
156
156
* @see CustomItemDefinition#removedComponents()
157
157
* @return the item's data component patch
158
158
*/
159
-
@NonNullDataComponentMapcomponents();
159
+
@NonNull
160
+
ItemDataComponentMapcomponents();
160
161
161
162
/**
162
163
* A list of removed default item data components. These are components that are present on the vanilla base item, but not on the custom item. Like with custom added
* existing on the vanilla item. This must match server-side behavior, otherwise, issues
274
275
* will occur. See {@link CustomItemDefinition#removedComponents()} for more information.
275
276
*
276
-
* <p>Removed data components cannot be added again using {@link CustomItemDefinition.Builder#component(DataComponent, Object)},
277
+
* <p>Removed data components cannot be added again using {@link CustomItemDefinition.Builder#component(ItemDataComponent, Object)},
277
278
* and this method will throw when a component is removed that was added using the aforementioned method.</p>
278
279
*
279
280
* @param component the identifier of the vanilla base component to remove
280
-
* @throws IllegalArgumentException when the removed component was added using {@link CustomItemDefinition.Builder#component(DataComponent, Object)}
281
+
* @throws IllegalArgumentException when the removed component was added using {@link CustomItemDefinition.Builder#component(ItemDataComponent, Object)}
* Convenience method for {@link CustomItemDefinition.Builder#removeComponent(Identifier)}.
288
289
*
289
290
* @param component the component type to remove
290
-
* @throws IllegalArgumentException when the removed component was added using {@link CustomItemDefinition.Builder#component(DataComponent, Object)}
291
+
* @throws IllegalArgumentException when the removed component was added using {@link CustomItemDefinition.Builder#component(ItemDataComponent, Object)}
Copy file name to clipboardExpand all lines: api/src/main/java/org/geysermc/geyser/api/item/custom/v2/component/geyser/GeyserChargeable.java
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@
40
40
* charges on being drawn, and the ammunition that can be
41
41
* used by the item.
42
42
*/
43
-
publicinterfaceChargeable {
43
+
publicinterfaceGeyserChargeable {
44
44
45
45
/**
46
46
* The maximum draw duration determines how long the weapon
@@ -63,7 +63,7 @@ public interface Chargeable {
63
63
* For example, this can contain {@code minecraft:arrow} to allow arrows to be shot.
64
64
*
65
65
* <p>Items listed <em>must</em> have a {@code minecraft:projectile} component on bedrock to work.
66
-
* Non-vanilla custom items can mark an item as a projectile and add this component by specifying the {@link GeyserDataComponent#PROJECTILE} component.</p>
66
+
* Non-vanilla custom items can mark an item as a projectile and add this component by specifying the {@link GeyserItemDataComponent#PROJECTILE} component.</p>
0 commit comments