NeoForgeItemStack
Link to neoforgeitemstack
Importing the class
Link to importing-the-class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.item.NeoForgeItemStack;
Implemented Interfaces
Link to implemented-interfaces
NeoForgeItemStack implements the following interfaces. That means all methods defined in these interfaces are also available in NeoForgeItemStack
Static Properties
Link to static-properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name BASE_ATTACK_DAMAGE_UUID | Type stdlib.UUID | Has Getter true | Has Setter false |
Name BASE_ATTACK_SPEED_UUID | Type stdlib.UUID | Has Getter true | Has Setter false |
Name CRAFTTWEAKER_DATA_KEY | Type string | Has Getter true | Has Setter false |
Casters
Link to casters
Result Type | Is Implicit |
---|---|
Result Type IIngredientWithAmount | Is Implicit true |
Result Type ItemDefinition | Is Implicit true |
Result Type ItemLike | Is Implicit true |
Result Type ItemStack | Is Implicit true |
Result Type MapData | Is Implicit true |
Result Type Percentaged<IItemStack> | Is Implicit true |
Methods
Link to methods
Name: addGlobalAttributeModifier
Adds an AttributeModifier to this IIngredient.
Attributes added with this method appear on all ItemStacks that match this IIngredient, regardless of how or when the ItemStack was made, if you want to have the attribute on a single specific ItemStack (such as a specific Diamond Sword made in a recipe), then you should use IItemStack#withAttributeModifier
ZenScript Copy// NeoForgeItemStack.addGlobalAttributeModifier(attribute as Attribute, name as string, value as double, operation as AttributeOperation, slotTypes as EquipmentSlot[])
myNeoForgeItemStack.addGlobalAttributeModifier(<attribute:minecraft:generic.attack_damage>, "Extra Power", 10, AttributeOperation.ADDITION, [<constant:minecraft:equipmentslot:chest>]);
Parameter | Type | Description |
---|---|---|
Parameter attribute | Type Attribute | Description The Attribute of the modifier. |
Parameter name | Type string | Description The name of the modifier. |
Parameter value | Type double | Description The value of the modifier. |
Parameter operation | Type AttributeOperation | Description The operation of the modifier. |
Parameter slotTypes | Type EquipmentSlot[] | Description What slots the modifier is valid for. |
Name: addGlobalAttributeModifier
Adds an AttributeModifier to this IIngredient using a specific UUID.
The UUID can be used to override an existing attribute on an ItemStack with this new modifier.
You can use /ct hand attributes
to get the UUID of the attributes on an ItemStack.
Attributes added with this method appear on all ItemStacks that match this IIngredient, regardless of how or when the ItemStack was made, if you want to have the attribute on a single specific ItemStack (such as a specific Diamond Sword made in a recipe), then you should use IItemStack#withAttributeModifier
ZenScript Copy// NeoForgeItemStack.addGlobalAttributeModifier(attribute as Attribute, uuid as stdlib.UUID, name as string, value as double, operation as AttributeOperation, slotTypes as EquipmentSlot[])
myNeoForgeItemStack.addGlobalAttributeModifier(<attribute:minecraft:generic.attack_damage>, IItemStack.BASE_ATTACK_DAMAGE_UUID, "Extra Power", 10, AttributeOperation.ADDITION, [<constant:minecraft:equipmentslot:chest>]);
Parameter | Type | Description |
---|---|---|
Parameter attribute | Type Attribute | Description The Attribute of the modifier. |
Parameter uuid | Type stdlib.UUID | Description The unique identifier of the modifier to replace. |
Parameter name | Type string | Description The name of the modifier. |
Parameter value | Type double | Description The value of the modifier. |
Parameter operation | Type AttributeOperation | Description The operation of the modifier. |
Parameter slotTypes | Type EquipmentSlot[] | Description What slots the modifier is valid for. |
Name: addGlobalAttributeModifier
Adds an AttributeModifier to this IIngredient using a specific UUID.
The UUID can be used to override an existing attribute on an ItemStack with this new modifier.
You can use /ct hand attributes
to get the UUID of the attributes on an ItemStack.
Attributes added with this method appear on all ItemStacks that match this IIngredient, regardless of how or when the ItemStack was made, if you want to have the attribute on a single specific ItemStack (such as a specific Diamond Sword made in a recipe), then you should use IItemStack#withAttributeModifier
ZenScript Copy// NeoForgeItemStack.addGlobalAttributeModifier(attribute as Attribute, uuid as string, name as string, value as double, operation as AttributeOperation, slotTypes as EquipmentSlot[])
myNeoForgeItemStack.addGlobalAttributeModifier(<attribute:minecraft:generic.attack_damage>, "8c1b5535-9f79-448b-87ae-52d81480aaa3", "Extra Power", 10, AttributeOperation.ADDITION, [<constant:minecraft:equipmentslot:chest>]);
Parameter | Type | Description |
---|---|---|
Parameter attribute | Type Attribute | Description The Attribute of the modifier. |
Parameter uuid | Type string | Description The unique identifier of the modifier to replace. |
Parameter name | Type string | Description The name of the modifier. |
Parameter value | Type double | Description The value of the modifier. |
Parameter operation | Type AttributeOperation | Description The operation of the modifier. |
Parameter slotTypes | Type EquipmentSlot[] | Description What slots the modifier is valid for. |
Name: addTooltip
ZenScript CopyNeoForgeItemStack.addTooltip(content as Component)
Parameter | Type |
---|---|
Parameter content | Type Component |
Name: anyDamage
Return Type: IIngredient
ZenScript Copy// NeoForgeItemStack.anyDamage() as IIngredient
myNeoForgeItemStack.anyDamage();
Name: applyComponents
Return Type: IItemStack
ZenScript CopyNeoForgeItemStack.applyComponents(map as DataComponentMap) as IItemStack
Parameter | Type |
---|---|
Parameter map | Type DataComponentMap |
Name: applyComponents
Return Type: IItemStack
ZenScript CopyNeoForgeItemStack.applyComponents(patch as DataComponentPatch) as IItemStack
Parameter | Type |
---|---|
Parameter patch | Type DataComponentPatch |
Name: applyComponentsAndValidate
Return Type: IItemStack
ZenScript CopyNeoForgeItemStack.applyComponentsAndValidate(patch as DataComponentPatch) as IItemStack
Parameter | Type |
---|---|
Parameter patch | Type DataComponentPatch |
Name: asIIngredientWithAmount
Return Type: IIngredientWithAmount
ZenScript Copy// NeoForgeItemStack.asIIngredientWithAmount() as IIngredientWithAmount
myNeoForgeItemStack.asIIngredientWithAmount();
Name: asImmutable
Return Type: IItemStack
ZenScript Copy// NeoForgeItemStack.asImmutable() as IItemStack
myNeoForgeItemStack.asImmutable();
Name: asItemLike
Return Type: ItemLike
ZenScript Copy// NeoForgeItemStack.asItemLike() as ItemLike
myNeoForgeItemStack.asItemLike();
Name: asMutable
Return Type: IItemStack
ZenScript Copy// NeoForgeItemStack.asMutable() as IItemStack
myNeoForgeItemStack.asMutable();
Name: clearTooltip
ZenScript CopyNeoForgeItemStack.clearTooltip(leaveName as boolean)
Parameter | Type | Optional | Default Value |
---|---|---|---|
Parameter leaveName | Type boolean | Optional true | Default Value false |
Name: contains
Does the ingredient contain the given ingredient?
Return Type: boolean
ZenScript Copy// NeoForgeItemStack.contains(ingredient as IIngredient) as boolean
myNeoForgeItemStack.contains((<item:minecraft:iron_ingot> | <item:minecraft:gold_ingot>));
Parameter | Type | Description |
---|---|---|
Parameter ingredient | Type IIngredient | Description The ingredient to check |
Name: copy
Creates a copy
Return Type: IItemStack
ZenScript Copy// NeoForgeItemStack.copy() as IItemStack
myNeoForgeItemStack.copy();
Name: getAttributes
Gets the Attributes and the AttributeModifiers on this IItemStack for the given EquipmentSlot
Returns: A Map of Attribute to a List of AttributeModifier for the given EquipmentSlot.
Return Type: stdlib.List<AttributeModifier>[Attribute]
ZenScript Copy// NeoForgeItemStack.getAttributes(slotType as EquipmentSlot) as stdlib.List<AttributeModifier>[Attribute]
myNeoForgeItemStack.getAttributes(<constant:minecraft:equipmentslot:chest>);
Parameter | Type | Description |
---|---|---|
Parameter slotType | Type EquipmentSlot | Description The slot to get the Attributes for. |
Name: getBurnTime
Return Type: int
ZenScript CopyNeoForgeItemStack.getBurnTime(manager as IRecipeManager) as int
Parameter | Type |
---|---|
Parameter manager | Type IRecipeManager |
Name: getDefinition
Return Type: ItemDefinition
ZenScript Copy// NeoForgeItemStack.getDefinition() as ItemDefinition
myNeoForgeItemStack.getDefinition();
Name: getImmutableInternal
Return Type: ItemStack
ZenScript Copy// NeoForgeItemStack.getImmutableInternal() as ItemStack
myNeoForgeItemStack.getImmutableInternal();
Name: getRemainingItem
When this ingredient stack is crafted, what will remain in the grid? Does not check if the stack matches though! Used e.g. in Crafting Table recipes.
Return Type: IItemStack
ZenScript Copy// NeoForgeItemStack.getRemainingItem(stack as IItemStack) as IItemStack
myNeoForgeItemStack.getRemainingItem(<item:minecraft:iron_ingot>);
Parameter | Type | Description |
---|---|---|
Parameter stack | Type IItemStack | Description The stack to provide for this ingredient. |
Name: grow
Grows this IItemStack's stack size by the given amount, or 1 if no amount is given.
Returns: This IItemStack if mutable, a new one with the new amount otherwise.
Return Type: IItemStack
ZenScript Copy// NeoForgeItemStack.grow(amount as int) as IItemStack
myNeoForgeItemStack.grow(2);
Parameter | Type | Description | Optional | Default Value |
---|---|---|---|---|
Parameter amount | Type int | Description The amount to grow by. | Optional true | Default Value 1 |
Name: isImmutable
Return Type: boolean
ZenScript Copy// NeoForgeItemStack.isImmutable() as boolean
myNeoForgeItemStack.isImmutable();
Name: isMutable
Return Type: boolean
ZenScript Copy// NeoForgeItemStack.isMutable() as boolean
myNeoForgeItemStack.isMutable();
Name: modifyShiftTooltip
ZenScript CopyNeoForgeItemStack.modifyShiftTooltip(shiftedFunction as ITooltipFunction, unshiftedFunction as ITooltipFunction)
Parameter | Type | Optional |
---|---|---|
Parameter shiftedFunction | Type ITooltipFunction | Optional false |
Parameter unshiftedFunction | Type ITooltipFunction | Optional true |
Name: modifyTooltip
ZenScript CopyNeoForgeItemStack.modifyTooltip(function as ITooltipFunction)
Parameter | Type |
---|---|
Parameter function | Type ITooltipFunction |
Name: mul
Use this in contexts where machines accept more than one item to state that fact.
Return Type: IIngredientWithAmount
ZenScript CopyNeoForgeItemStack.mul(amount as int) as IIngredientWithAmount
Parameter | Type |
---|---|
Parameter amount | Type int |
Name: onlyDamaged
Return Type: IIngredient
ZenScript Copy// NeoForgeItemStack.onlyDamaged() as IIngredient
myNeoForgeItemStack.onlyDamaged();
Name: onlyDamagedAtLeast
Return Type: IIngredient
ZenScript CopyNeoForgeItemStack.onlyDamagedAtLeast(minDamage as int) as IIngredient
Parameter | Type |
---|---|
Parameter minDamage | Type int |
Name: onlyDamagedAtMost
Return Type: IIngredient
ZenScript CopyNeoForgeItemStack.onlyDamagedAtMost(maxDamage as int) as IIngredient
Parameter | Type |
---|---|
Parameter maxDamage | Type int |
Name: onlyIf
Return Type: IIngredient
ZenScript CopyNeoForgeItemStack.onlyIf(uid as string, function as Predicate<IItemStack>) as IIngredient
Parameter | Type | Optional |
---|---|---|
Parameter uid | Type string | Optional false |
Parameter function | Type Predicate<IItemStack> | Optional true |
Name: percent
Return Type: Percentaged<IItemStack>
ZenScript CopyNeoForgeItemStack.percent(percentage as double) as Percentaged<IItemStack>
Parameter | Type |
---|---|
Parameter percentage | Type double |
Name: remove
Return Type: IItemStack
ZenScript CopyNeoForgeItemStack.remove<T : Object>(type as DataComponentType<T>) as IItemStack
Parameter | Type |
---|---|
Parameter type | Type DataComponentType<T> |
Parameter T | Type Object |
Name: removeGlobalAttribute
Removes all AttributeModifiers that use the given Attribute from this IIngredient.
Attributes removed with this method are removed from ItemStacks that match this IIngredient, regardless of how or when the ItemStack was made, if you want to remove the attribute on a single specific ItemStack (such as a specific Diamond Sword made in a recipe), then you should use IItemStack#withoutAttribute.
This method can only remove default Attributes from an ItemStack, it is still possible that an ItemStack can override it.
ZenScript Copy// NeoForgeItemStack.removeGlobalAttribute(attribute as Attribute, slotTypes as EquipmentSlot[])
myNeoForgeItemStack.removeGlobalAttribute(<attribute:minecraft:generic.attack_damage>, [<constant:minecraft:equipmentslot:chest>]);
Parameter | Type | Description |
---|---|---|
Parameter attribute | Type Attribute | Description The attribute to remove. |
Parameter slotTypes | Type EquipmentSlot[] | Description The slot types to remove it from. |
Name: removeGlobalAttributeModifier
Removes all AttributeModifiers who's ID is the same as the given uuid from this IIngredient.
ZenScript Copy// NeoForgeItemStack.removeGlobalAttributeModifier(uuid as stdlib.UUID, slotTypes as EquipmentSlot[])
myNeoForgeItemStack.removeGlobalAttributeModifier(IItemStack.BASE_ATTACK_DAMAGE_UUID, [<constant:minecraft:equipmentslot:chest>]);
Parameter | Type | Description |
---|---|---|
Parameter uuid | Type stdlib.UUID | Description The unique id of the AttributeModifier to remove. |
Parameter slotTypes | Type EquipmentSlot[] | Description The slot types to remove it from. |
Name: removeGlobalAttributeModifier
Removes all AttributeModifiers who's ID is the same as the given uuid from this IIngredient.
ZenScript Copy// NeoForgeItemStack.removeGlobalAttributeModifier(uuid as string, slotTypes as EquipmentSlot[])
myNeoForgeItemStack.removeGlobalAttributeModifier("8c1b5535-9f79-448b-87ae-52d81480aaa3", [<constant:minecraft:equipmentslot:chest>]);
Parameter | Type | Description |
---|---|---|
Parameter uuid | Type string | Description The unique id of the AttributeModifier to remove. |
Parameter slotTypes | Type EquipmentSlot[] | Description The slot types to remove it from. |
Name: removeTooltip
ZenScript CopyNeoForgeItemStack.removeTooltip(regex as string)
Parameter | Type |
---|---|
Parameter regex | Type string |
Name: reuse
Return Type: IIngredient
ZenScript Copy// NeoForgeItemStack.reuse() as IIngredient
myNeoForgeItemStack.reuse();
Name: setBurnTime
Sets the burn time of this ingredient, for use in the furnace and other machines
ZenScript Copy// NeoForgeItemStack.setBurnTime(time as int)
myNeoForgeItemStack.setBurnTime(500);
Parameter | Type | Description |
---|---|---|
Parameter time | Type int | Description the new burn time |
Name: setBurnTime
Sets the burn time of this ingredient, for use in the furnace and other machines
ZenScript CopyNeoForgeItemStack.setBurnTime(time as int, manager as IRecipeManager)
Parameter | Type | Description |
---|---|---|
Parameter time | Type int | Description the new burn time |
Parameter manager | Type IRecipeManager | Description ​ |
Name: shrink
Shrinks this IItemStack's stack size by the given amount, or 1 if no amount is given.
Returns: This IItemStack if mutable, a new one with the new amount otherwise.
Return Type: IItemStack
ZenScript Copy// NeoForgeItemStack.shrink(amount as int) as IItemStack
myNeoForgeItemStack.shrink(2);
Parameter | Type | Description | Optional | Default Value |
---|---|---|---|---|
Parameter amount | Type int | Description The amount to shrink by. | Optional true | Default Value 1 |
Name: transformCustom
Return Type: IIngredient
ZenScript CopyNeoForgeItemStack.transformCustom(uid as string, function as Function<IItemStack,IItemStack>) as IIngredient
Parameter | Type | Optional |
---|---|---|
Parameter uid | Type string | Optional false |
Parameter function | Type Function<IItemStack,IItemStack> | Optional true |
Name: transformDamage
Return Type: IIngredient
ZenScript CopyNeoForgeItemStack.transformDamage(amount as int) as IIngredient
Parameter | Type | Optional | Default Value |
---|---|---|---|
Parameter amount | Type int | Optional true | Default Value 1 |
Name: transformReplace
Return Type: IIngredient
ZenScript CopyNeoForgeItemStack.transformReplace(replaceWith as IItemStack) as IIngredient
Parameter | Type |
---|---|
Parameter replaceWith | Type IItemStack |
Name: update
Return Type: IItemStack
ZenScript CopyNeoForgeItemStack.update<T : Object>(type as DataComponentType<T>, defaultValue as T, operator as UnaryOperator<T>) as IItemStack
Parameter | Type |
---|---|
Parameter type | Type DataComponentType<T> |
Parameter defaultValue | Type T |
Parameter operator | Type UnaryOperator<T> |
Parameter T | Type Object |
Name: update
Return Type: IItemStack
ZenScript CopyNeoForgeItemStack.update<T : Object, U : Object>(type as DataComponentType<T>, defaultValue as T, data as U, operator as BiFunction<T,U,T>) as IItemStack
Parameter | Type |
---|---|
Parameter type | Type DataComponentType<T> |
Parameter defaultValue | Type T |
Parameter data | Type U |
Parameter operator | Type BiFunction<T,U,T> |
Parameter T | Type Object |
Parameter U | Type Object |
Name: with
Return Type: IItemStack
ZenScript CopyNeoForgeItemStack.with<T : Object>(type as DataComponentType<T>, value as @org.openzen.zencode.java.ZenCodeType.Nullable T) as IItemStack
Parameter | Type |
---|---|
Parameter type | Type DataComponentType<T> |
Parameter value | Type @org.openzen.zencode.java.ZenCodeType.Nullable T |
Parameter T | Type Object |
Name: withAttributeModifiers
Sets the <componenttype:minecraft:attribute_modifiers> of the ComponentAccess to have the given ItemAttributeModifiers
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withAttributeModifiers(modifiers as ItemAttributeModifiers) as T
myNeoForgeItemStack.withAttributeModifiers(ItemAttributeModifiers.builder().add(<attribute:minecraft:player.block_break_speed>,
AttributeModifier.create("test", 2.0, <constant:minecraft:attribute/operation:add_value>, "596e0826-7c66-42c6-b3da-45a6d667ccf7"),
<constant:minecraft:equipmentslot/group:mainhand>).build(););
Parameter | Type | Description |
---|---|---|
Parameter modifiers | Type ItemAttributeModifiers | Description The attributes to give to the item. |
Name: withAttributeModifiers
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withAttributeModifiers(modifier as ItemAttributeModifiersEntry, showInTooltip as boolean) as T
Parameter | Type | Optional | Default Value |
---|---|---|---|
Parameter modifier | Type ItemAttributeModifiersEntry | Optional false | Default Value ​ |
Parameter showInTooltip | Type boolean | Optional true | Default Value true |
Name: withAttributeModifiers
Return Type: T
ZenScript CopyNeoForgeItemStack.withAttributeModifiers(modifiers as stdlib.List<ItemAttributeModifiersEntry>, showInTooltip as boolean) as T
Parameter | Type | Optional | Default Value |
---|---|---|---|
Parameter modifiers | Type stdlib.List<ItemAttributeModifiersEntry> | Optional false | Default Value ​ |
Parameter showInTooltip | Type boolean | Optional true | Default Value true |
Name: withBannerPatterns
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withBannerPatterns(layers as BannerPatternLayers) as T
Parameter | Type |
---|---|
Parameter layers | Type BannerPatternLayers |
Name: withBannerPatterns
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withBannerPatterns(layers as stdlib.List<BannerPatternLayersLayer>) as T
Parameter | Type |
---|---|
Parameter layers | Type stdlib.List<BannerPatternLayersLayer> |
Name: withBaseColor
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withBaseColor(color as invalid) as T
Parameter | Type |
---|---|
Parameter color | Type invalid |
Name: withBees
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withBees(occupants as stdlib.List<BeehiveBlockEntityOccupant>) as T
Parameter | Type |
---|---|
Parameter occupants | Type stdlib.List<BeehiveBlockEntityOccupant> |
Name: withBlockEntityData
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withBlockEntityData(data as CustomData) as T
Parameter | Type |
---|---|
Parameter data | Type CustomData |
Name: withBlockEntityData
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withBlockEntityData(data as MapData) as T
Parameter | Type |
---|---|
Parameter data | Type MapData |
Name: withBlockState
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withBlockState(properties as BlockItemStateProperties) as T
Parameter | Type |
---|---|
Parameter properties | Type BlockItemStateProperties |
Name: withBucketEntityData
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withBucketEntityData(data as CustomData) as T
Parameter | Type |
---|---|
Parameter data | Type CustomData |
Name: withBucketEntityData
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withBucketEntityData(data as MapData) as T
Parameter | Type |
---|---|
Parameter data | Type MapData |
Name: withBundleContents
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withBundleContents(contents as BundleContents) as T
Parameter | Type |
---|---|
Parameter contents | Type BundleContents |
Name: withBundleContents
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withBundleContents(contents as stdlib.List<IItemStack>) as T
Parameter | Type |
---|---|
Parameter contents | Type stdlib.List<IItemStack> |
Name: withCanBreak
Sets the <componenttype:minecraft:can_break> of the ComponentAccess to have the given invalid
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withCanBreak(predicate as invalid) as T
Parameter | Type | Description |
---|---|---|
Parameter predicate | Type invalid | Description The adventure mode predicate to use to determine whether the item can be used to break a block. |
Name: withCanBreak
Sets the <componenttype:minecraft:can_break> with the given BlockPredicates.
Any predicate that matches will allow the Block to be broken by this ItemStack.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withCanBreak(predicates as stdlib.List<BlockPredicate>, showInTooltip as boolean) as T
myNeoForgeItemStack.withCanBreak(BlockPredicate.create().of(<block:minecraft:diamond_ore>).build(), true);
Parameter | Type | Description | Optional | Default Value |
---|---|---|---|---|
Parameter predicates | Type stdlib.List<BlockPredicate> | Description The collection of predicates to test for | Optional false | Default Value ​ |
Parameter showInTooltip | Type boolean | Description Whether to show the ability in the tooltip or not. | Optional true | Default Value true |
Name: withCanPlaceOn
Sets the <componenttype:minecraft:can_place_on> of the ComponentAccess to have the given invalid
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withCanPlaceOn(predicate as invalid) as T
Parameter | Type | Description |
---|---|---|
Parameter predicate | Type invalid | Description The adventure mode predicate to use to determine whether the current block can be placed on another block. |
Name: withCanPlaceOn
Sets the <componenttype:minecraft:can_place_on> with the given BlockPredicates.
Any predicate that matches will allow the BlockItem within the ItemStack to be placed.
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withCanPlaceOn(predicates as stdlib.List<BlockPredicate>, showInTooltip as boolean) as T
Parameter | Type | Description | Optional | Default Value |
---|---|---|---|---|
Parameter predicates | Type stdlib.List<BlockPredicate> | Description The collection of predicates to test for | Optional false | Default Value ​ |
Parameter showInTooltip | Type boolean | Description Whether to show the restriction in the tooltip or not. | Optional true | Default Value true |
Name: withChargedProjectiles
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withChargedProjectiles(chargedProjectiles as ChargedProjectiles) as T
Parameter | Type |
---|---|
Parameter chargedProjectiles | Type ChargedProjectiles |
Name: withChargedProjectiles
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withChargedProjectiles(item as IItemStack) as T
Parameter | Type |
---|---|
Parameter item | Type IItemStack |
Name: withChargedProjectiles
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withChargedProjectiles(items as stdlib.List<IItemStack>) as T
Parameter | Type |
---|---|
Parameter items | Type stdlib.List<IItemStack> |
Name: withContainer
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withContainer(contents as ItemContainerContents) as T
Parameter | Type |
---|---|
Parameter contents | Type ItemContainerContents |
Name: withContainer
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withContainer(contents as stdlib.List<IItemStack>) as T
Parameter | Type |
---|---|
Parameter contents | Type stdlib.List<IItemStack> |
Name: withContainerLoot
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withContainerLoot(loot as SeededContainerLoot) as T
Parameter | Type |
---|---|
Parameter loot | Type SeededContainerLoot |
Name: withContainerLoot
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withContainerLoot(lootTable as ResourceKey<LootTable>, seed as long) as T
Parameter | Type |
---|---|
Parameter lootTable | Type ResourceKey<LootTable> |
Parameter seed | Type long |
Name: withCreativeSlotLock
Sets the <componenttype:minecraft:creative_slot_lock> of the ComponentAccess to exist.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withCreativeSlotLock() as T
myNeoForgeItemStack.withCreativeSlotLock();
Name: withCustomData
Sets the <componenttype:minecraft:custom_data> of the ComponentAccess to have the given CustomData
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withCustomData(customData as CustomData) as T
Parameter | Type |
---|---|
Parameter customData | Type CustomData |
Name: withCustomData
Sets the componenttype:minecraft:custom_data of the ComponentAccess to have the given MapData
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withCustomData(customData as MapData) as T
myNeoForgeItemStack.withCustomData({custom_ammo_thing: 1, owner: "Benji"});
Parameter | Type | Description |
---|---|---|
Parameter customData | Type MapData | Description The MapData to set the component to. |
Name: withCustomModelData
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withCustomModelData(data as CustomModelData) as T
Parameter | Type |
---|---|
Parameter data | Type CustomModelData |
Name: withCustomModelData
Sets the <componenttype:minecraft:custom_data> of the ComponentAccess to have the given CustomData
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withCustomModelData(value as int) as T
myNeoForgeItemStack.withCustomModelData(2);
Parameter | Type | Description |
---|---|---|
Parameter value | Type int | Description The value to set the CustomModelData to |
Name: withCustomName
Sets the <componenttype:minecraft:custom_name> of the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withCustomName(name as Component) as T
myNeoForgeItemStack.withCustomName(Component.literal("Fancy Water"));
myNeoForgeItemStack.withCustomName(Component.translatable("mypack.lore.fancy_water"));
Parameter | Type | Description |
---|---|---|
Parameter name | Type Component | Description The component to use. |
Name: withDamage
Sets the <componenttype:minecraft:damage> of the ComponentAccess to have the given value. Damage is related to durability.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withDamage(damage as int) as T
myNeoForgeItemStack.withDamage(16);
Parameter | Type | Description |
---|---|---|
Parameter damage | Type int | Description The new damage of the ComponentAccess. |
Name: withDebugStickState
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withDebugStickState(state as DebugStickState) as T
Parameter | Type |
---|---|
Parameter state | Type DebugStickState |
Name: withDyedColor
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withDyedColor(color as DyedItemColor) as T
Parameter | Type |
---|---|
Parameter color | Type DyedItemColor |
Name: withDyedColor
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withDyedColor(rgb as int, showInTooltip as boolean) as T
Parameter | Type | Optional | Default Value |
---|---|---|---|
Parameter rgb | Type int | Optional false | Default Value ​ |
Parameter showInTooltip | Type boolean | Optional true | Default Value true |
Name: withEnchantment
Sets the <componenttype:minecraft:enchantments> of the ComponentAccess to have the given Enchantment and level.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withEnchantment(enchantment as Enchantment, level as int) as T
myNeoForgeItemStack.withEnchantment(<enchantment:minecraft:efficiency>, 4);
Parameter | Type | Description | Optional | Default Value |
---|---|---|---|---|
Parameter enchantment | Type Enchantment | Description The enchantment to add | Optional false | Default Value ​ |
Parameter level | Type int | Description The level of the enchantment to set | Optional true | Default Value 1 |
Name: withEnchantmentGlintOverride
Sets the <componenttype:minecraft:enchantment_glint_override> of the ComponentAccess to have the given value.
If it is false, the item will never render the enchantment glint If it is true, the item will render the enchantment glint always, indenpendently of whether it is enchanted or not.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withEnchantmentGlintOverride(value as boolean) as T
myNeoForgeItemStack.withEnchantmentGlintOverride(true);
Parameter | Type | Description |
---|---|---|
Parameter value | Type boolean | Description The value of the override, as described above |
Name: withEnchantments
Sets the <componenttype:minecraft:enchantments> of the ComponentAccess to have the given ItemEnchantments
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withEnchantments(enchantments as ItemEnchantments) as T
Parameter | Type |
---|---|
Parameter enchantments | Type ItemEnchantments |
Name: withEntityData
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withEntityData(data as CustomData) as T
Parameter | Type |
---|---|
Parameter data | Type CustomData |
Name: withEntityData
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withEntityData(data as MapData) as T
Parameter | Type |
---|---|
Parameter data | Type MapData |
Name: withFireResistant
Sets the <componenttype:minecraft:fire_resistant> of the ComponentAccess to exist.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withFireResistant() as T
myNeoForgeItemStack.withFireResistant();
Name: withFireworkExplosion
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withFireworkExplosion(explosion as FireworkExplosion) as T
Parameter | Type |
---|---|
Parameter explosion | Type FireworkExplosion |
Name: withFireworks
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withFireworks(fireworks as Fireworks) as T
Parameter | Type |
---|---|
Parameter fireworks | Type Fireworks |
Name: withFireworks
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withFireworks(flightDuration as int, explosions as stdlib.List<FireworkExplosion>) as T
Parameter | Type |
---|---|
Parameter flightDuration | Type int |
Parameter explosions | Type stdlib.List<FireworkExplosion> |
Name: withFood
Sets the <componenttype:minecraft:food> of the ComponentAccess to have the given FoodProperties
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withFood(food as FoodProperties) as T
Parameter | Type |
---|---|
Parameter food | Type FoodProperties |
Name: withHideAdditionalTooltip
Sets the <componenttype:minecraft:hide_additional_tooltip> of the ComponentAccess to exist.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withHideAdditionalTooltip() as T
myNeoForgeItemStack.withHideAdditionalTooltip();
Name: withHideTooltip
Sets the <componenttype:minecraft:hide_tooltip> of the ComponentAccess to exist.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withHideTooltip() as T
myNeoForgeItemStack.withHideTooltip();
Name: withInstrument
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withInstrument(instrument as Instrument) as T
Parameter | Type |
---|---|
Parameter instrument | Type Instrument |
Name: withIntangibleProjectile
Sets the <componenttype:minecraft:intangible_projectile> of the ComponentAccess to have exist.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withIntangibleProjectile() as T
myNeoForgeItemStack.withIntangibleProjectile();
Name: withItemName
Sets the <componenttype:minecraft:item_name> of the ComponentAccess to have the given Component
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withItemName(name as Component) as T
myNeoForgeItemStack.withItemName(Component.literal("Fancy Water"));
myNeoForgeItemStack.withItemName(Component.translatable("mypack.lore.fancy_water"));
Parameter | Type |
---|---|
Parameter name | Type Component |
Name: withJsonComponent
Return Type: IItemStack
ZenScript CopyNeoForgeItemStack.withJsonComponent(type as DataComponentType, value as IData?) as IItemStack
Parameter | Type |
---|---|
Parameter type | Type DataComponentType |
Parameter value | Type IData? |
Name: withJsonComponents
Return Type: IItemStack
ZenScript CopyNeoForgeItemStack.withJsonComponents(value as IData) as IItemStack
Parameter | Type |
---|---|
Parameter value | Type IData |
Name: withLock
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withLock(code as string) as T
Parameter | Type |
---|---|
Parameter code | Type string |
Name: withLock
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withLock(lock as invalid) as T
Parameter | Type |
---|---|
Parameter lock | Type invalid |
Name: withLodestoneTracker
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withLodestoneTracker(tracker as LodestoneTracker) as T
Parameter | Type |
---|---|
Parameter tracker | Type LodestoneTracker |
Name: withLore
Sets the <componenttype:minecraft:lore> of the ComponentAccess to have the given stdlib.List<Component>
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withLore(components as stdlib.List<Component>) as T
myNeoForgeItemStack.withLore([Component.literal("Found in a dark cave"), Component.translatable("Belonged to a Dragon")]);
Parameter | Type | Description |
---|---|---|
Parameter components | Type stdlib.List<Component> | Description The list of Components to add as lore. |
Name: withMapColor
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withMapColor(color as MapItemColor) as T
Parameter | Type |
---|---|
Parameter color | Type MapItemColor |
Name: withMapColor
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withMapColor(rgb as int) as T
Parameter | Type |
---|---|
Parameter rgb | Type int |
Name: withMapDecorations
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withMapDecorations(decorations as MapDecorations) as T
Parameter | Type |
---|---|
Parameter decorations | Type MapDecorations |
Name: withMapDecorations
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withMapDecorations(decorations as MapDecorationsEntry[string]) as T
Parameter | Type |
---|---|
Parameter decorations | Type MapDecorationsEntry[string] |
Name: withMapId
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withMapId(id as int) as T
Parameter | Type |
---|---|
Parameter id | Type int |
Name: withMapId
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withMapId(mapId as invalid) as T
Parameter | Type |
---|---|
Parameter mapId | Type invalid |
Name: withMapPostProcessing
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withMapPostProcessing(value as MapPostProcessing) as T
Parameter | Type |
---|---|
Parameter value | Type MapPostProcessing |
Name: withMaxDamage
Sets the <componenttype:minecraft:max_damage> of the ComponentAccess to have the given value.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withMaxDamage(maxDamage as int) as T
myNeoForgeItemStack.withMaxDamage(1024);
Parameter | Type |
---|---|
Parameter maxDamage | Type int |
Name: withMaxStackSize
Sets the <componenttype:minecraft:stack_size> of the ComponentAccess to have the given value. Non standard stack sizes may render differently and may not be handled correctly by all mods. Test your changes!
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withMaxStackSize(maxStackSize as int) as T
myNeoForgeItemStack.withMaxStackSize(16);
Parameter | Type | Description |
---|---|---|
Parameter maxStackSize | Type int | Description The new maxStackSize of the ComponentAccess. |
Name: withNoteBlockSound
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withNoteBlockSound(sound as ResourceLocation) as T
Parameter | Type |
---|---|
Parameter sound | Type ResourceLocation |
Name: withOminousBottleAmplifier
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withOminousBottleAmplifier(amplifier as int) as T
Parameter | Type |
---|---|
Parameter amplifier | Type int |
Name: withPotDecorations
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withPotDecorations(decorations as PotDecorations) as T
Parameter | Type |
---|---|
Parameter decorations | Type PotDecorations |
Name: withPotDecorations
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withPotDecorations(back as ItemDefinition, left as ItemDefinition, right as ItemDefinition, front as ItemDefinition) as T
Parameter | Type |
---|---|
Parameter back | Type ItemDefinition |
Parameter left | Type ItemDefinition |
Parameter right | Type ItemDefinition |
Parameter front | Type ItemDefinition |
Name: withPotionContents
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withPotionContents(contents as invalid) as T
Parameter | Type |
---|---|
Parameter contents | Type invalid |
Name: withPotionContents
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withPotionContents(potion as Potion) as T
Parameter | Type |
---|---|
Parameter potion | Type Potion |
Name: withPotionContents
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withPotionContents(potion as Potion, customEffects as stdlib.List<MobEffectInstance>) as T
Parameter | Type |
---|---|
Parameter potion | Type Potion |
Parameter customEffects | Type stdlib.List<MobEffectInstance> |
Name: withPotionContents
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withPotionContents(potion as Potion, customColor as int, customEffects as stdlib.List<MobEffectInstance>) as T
Parameter | Type |
---|---|
Parameter potion | Type Potion |
Parameter customColor | Type int |
Parameter customEffects | Type stdlib.List<MobEffectInstance> |
Name: withProfile
Return Type: T
ZenScript CopyNeoForgeItemStack.withProfile(profile as ResolvableProfile) as T
Parameter | Type |
---|---|
Parameter profile | Type ResolvableProfile |
Name: withRarity
Sets the <componenttype:minecraft:rarity> of the ComponentAccess to have the given Rarity
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withRarity(rarity as Rarity) as T
myNeoForgeItemStack.withRarity(<constant:minecraft:item/rarity:epic>);
Parameter | Type | Description |
---|---|---|
Parameter rarity | Type Rarity | Description The rarity to set |
Name: withRecipes
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withRecipes(recipes as stdlib.List<ResourceLocation>) as T
Parameter | Type |
---|---|
Parameter recipes | Type stdlib.List<ResourceLocation> |
Name: withRepairCost
Sets the <componenttype:minecraft:repair_cost> of the ComponentAccess to have the given value.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withRepairCost(cost as int) as T
myNeoForgeItemStack.withRepairCost(20);
Parameter | Type | Description |
---|---|---|
Parameter cost | Type int | Description The repair cost |
Name: withStoredEnchantments
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withStoredEnchantments(enchantments as ItemEnchantments) as T
Parameter | Type |
---|---|
Parameter enchantments | Type ItemEnchantments |
Name: withSuspiciousStewEffects
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withSuspiciousStewEffects(effects as stdlib.List<SuspiciousStewEffectsEntry>) as T
Parameter | Type |
---|---|
Parameter effects | Type stdlib.List<SuspiciousStewEffectsEntry> |
Name: withSuspiciousStewEffects
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withSuspiciousStewEffects(suspiciousStewEffects as SuspiciousStewEffects) as T
Parameter | Type |
---|---|
Parameter suspiciousStewEffects | Type SuspiciousStewEffects |
Name: withTool
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withTool(rules as stdlib.List<ToolRule>, defaultMiningSpeed as float, damagePerBlock as int) as T
Parameter | Type |
---|---|
Parameter rules | Type stdlib.List<ToolRule> |
Parameter defaultMiningSpeed | Type float |
Parameter damagePerBlock | Type int |
Name: withTrim
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withTrim(trim as ArmorTrim) as T
Parameter | Type |
---|---|
Parameter trim | Type ArmorTrim |
Name: withUnbreakable
Sets the <componenttype:minecraft:unbreakable> of the ComponentAccess. The existance of the component makes the ComponentAccess unbreakable.
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withUnbreakable(showInTooltip as boolean) as T
Parameter | Type | Description | Optional | Default Value |
---|---|---|---|---|
Parameter showInTooltip | Type boolean | Description Whether to show that the ComponentAccess is unbreakable in a tooltip. | Optional true | Default Value true |
Name: withUnbreakable
Sets the <componenttype:minecraft:unbreakable> of the ComponentAccess. The existance of the component makes the ComponentAccess unbreakable.
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withUnbreakable(unbreakable as Unbreakable) as T
Parameter | Type | Description |
---|---|---|
Parameter unbreakable | Type Unbreakable | Description The Unbreakable instance with the configured values. |
Name: withWritableBookContent
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withWritableBookContent(content as WritableBookContent) as T
Parameter | Type |
---|---|
Parameter content | Type WritableBookContent |
Name: withWritableBookContent
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withWritableBookContent(pages as stdlib.List<Filterable<string>>) as T
Parameter | Type |
---|---|
Parameter pages | Type stdlib.List<Filterable<string>> |
Name: withWrittenBookContent
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyNeoForgeItemStack.withWrittenBookContent(content as WrittenBookContent) as T
Parameter | Type |
---|---|
Parameter content | Type WrittenBookContent |
Name: without
Return Type: IItemStack
ZenScript CopyNeoForgeItemStack.without<T : Object>(type as DataComponentType<T>) as IItemStack
Parameter | Type |
---|---|
Parameter type | Type DataComponentType<T> |
Parameter T | Type Object |
Name: withoutAttributeModifiers
Removes the <componenttype:minecraft:attribute_modifiers> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutAttributeModifiers() as T
myNeoForgeItemStack.withoutAttributeModifiers();
Name: withoutBannerPatterns
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutBannerPatterns() as T
myNeoForgeItemStack.withoutBannerPatterns();
Name: withoutBaseColor
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutBaseColor() as T
myNeoForgeItemStack.withoutBaseColor();
Name: withoutBees
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutBees() as T
myNeoForgeItemStack.withoutBees();
Name: withoutBlockEntityData
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutBlockEntityData() as T
myNeoForgeItemStack.withoutBlockEntityData();
Name: withoutBlockState
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutBlockState() as T
myNeoForgeItemStack.withoutBlockState();
Name: withoutBucketEntityData
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutBucketEntityData() as T
myNeoForgeItemStack.withoutBucketEntityData();
Name: withoutBundleContents
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutBundleContents() as T
myNeoForgeItemStack.withoutBundleContents();
Name: withoutCanBreak
Removes the <componenttype:minecraft:can_break> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutCanBreak() as T
myNeoForgeItemStack.withoutCanBreak();
Name: withoutCanPlaceOn
Removes the <componenttype:minecraft:can_place_on> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutCanPlaceOn() as T
myNeoForgeItemStack.withoutCanPlaceOn();
Name: withoutChargedProjectiles
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutChargedProjectiles() as T
myNeoForgeItemStack.withoutChargedProjectiles();
Name: withoutContainer
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutContainer() as T
myNeoForgeItemStack.withoutContainer();
Name: withoutContainerLoot
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutContainerLoot() as T
myNeoForgeItemStack.withoutContainerLoot();
Name: withoutCreativeSlotLock
Removes the <componenttype:minecraft:creative_slot_lock> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutCreativeSlotLock() as T
myNeoForgeItemStack.withoutCreativeSlotLock();
Name: withoutCustomData
Removes the <componenttype:minecraft:custom_data> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutCustomData() as T
myNeoForgeItemStack.withoutCustomData();
Name: withoutCustomModelData
Removes the <componenttype:minecraft:custom_model_data> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutCustomModelData() as T
myNeoForgeItemStack.withoutCustomModelData();
Name: withoutCustomName
Removes the <componenttype:minecraft:custom_name> from the ComponentAccess
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutCustomName() as T
myNeoForgeItemStack.withoutCustomName();
Name: withoutDamage
Removes the <componenttype:minecraft:damage> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutDamage() as T
myNeoForgeItemStack.withoutDamage();
Name: withoutDebugStickState
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutDebugStickState() as T
myNeoForgeItemStack.withoutDebugStickState();
Name: withoutDyedColor
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutDyedColor() as T
myNeoForgeItemStack.withoutDyedColor();
Name: withoutEnchantment
Removes the Enchantment from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutEnchantment(enchantment as Enchantment) as T
myNeoForgeItemStack.withoutEnchantment(<enchantment:minecraft:mending>);
Parameter | Type | Description |
---|---|---|
Parameter enchantment | Type Enchantment | Description The Enchantment to remove |
Name: withoutEnchantmentGlintOverride
Removes the <componenttype:minecraft:enchantment_glint_override> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutEnchantmentGlintOverride() as T
myNeoForgeItemStack.withoutEnchantmentGlintOverride();
Name: withoutEnchantments
Removes the <componenttype:minecraft:enchantments> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutEnchantments() as T
myNeoForgeItemStack.withoutEnchantments();
Name: withoutEntityDate
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutEntityDate() as T
myNeoForgeItemStack.withoutEntityDate();
Name: withoutFireResistant
Removes the <componenttype:minecraft:fire_resistant> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutFireResistant() as T
myNeoForgeItemStack.withoutFireResistant();
Name: withoutFireworkExplosion
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutFireworkExplosion() as T
myNeoForgeItemStack.withoutFireworkExplosion();
Name: withoutFireworks
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutFireworks() as T
myNeoForgeItemStack.withoutFireworks();
Name: withoutFood
Removes the <componenttype:minecraft:food> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutFood() as T
myNeoForgeItemStack.withoutFood();
Name: withoutHideAdditionalTooltip
Removes the <componenttype:minecraft:hide_additional_tooltip> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutHideAdditionalTooltip() as T
myNeoForgeItemStack.withoutHideAdditionalTooltip();
Name: withoutHideTooltip
Removes the <componenttype:minecraft:hide_tooltip> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutHideTooltip() as T
myNeoForgeItemStack.withoutHideTooltip();
Name: withoutInstrument
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutInstrument() as T
myNeoForgeItemStack.withoutInstrument();
Name: withoutIntangibleProjectile
Removes the <componenttype:minecraft:intangible_projectile> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutIntangibleProjectile() as T
myNeoForgeItemStack.withoutIntangibleProjectile();
Name: withoutItemName
Removes the <componenttype:minecraft:item_name> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutItemName() as T
myNeoForgeItemStack.withoutItemName();
Name: withoutLock
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutLock() as T
myNeoForgeItemStack.withoutLock();
Name: withoutLodestoneTracker
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutLodestoneTracker() as T
myNeoForgeItemStack.withoutLodestoneTracker();
Name: withoutLore
Removes the <componenttype:minecraft:lore> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutLore() as T
myNeoForgeItemStack.withoutLore();
Name: withoutMapColor
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutMapColor() as T
myNeoForgeItemStack.withoutMapColor();
Name: withoutMapDecorations
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutMapDecorations() as T
myNeoForgeItemStack.withoutMapDecorations();
Name: withoutMapId
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutMapId() as T
myNeoForgeItemStack.withoutMapId();
Name: withoutMapPostProcessing
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutMapPostProcessing() as T
myNeoForgeItemStack.withoutMapPostProcessing();
Name: withoutMaxDamage
Removes the <componenttype:minecraft:max_damage> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutMaxDamage() as T
myNeoForgeItemStack.withoutMaxDamage();
Name: withoutMaxStackSize
Removes the <componenttype:minecraft:stack_size> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutMaxStackSize() as T
myNeoForgeItemStack.withoutMaxStackSize();
Name: withoutNoteBlockSound
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutNoteBlockSound() as T
myNeoForgeItemStack.withoutNoteBlockSound();
Name: withoutOminousBottleAmplifier
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutOminousBottleAmplifier() as T
myNeoForgeItemStack.withoutOminousBottleAmplifier();
Name: withoutPotDecorations
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutPotDecorations() as T
myNeoForgeItemStack.withoutPotDecorations();
Name: withoutPotionContents
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutPotionContents() as T
myNeoForgeItemStack.withoutPotionContents();
Name: withoutProfile
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutProfile() as T
myNeoForgeItemStack.withoutProfile();
Name: withoutRarity
Removes the <componenttype:minecraft:rarity> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutRarity() as T
myNeoForgeItemStack.withoutRarity();
Name: withoutRecipes
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutRecipes() as T
myNeoForgeItemStack.withoutRecipes();
Name: withoutRepairCost
Removes the <componenttype:minecraft:repair_cost> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutRepairCost() as T
myNeoForgeItemStack.withoutRepairCost();
Name: withoutStoredEnchantments
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutStoredEnchantments() as T
myNeoForgeItemStack.withoutStoredEnchantments();
Name: withoutSuspiciousStewEffects
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutSuspiciousStewEffects() as T
myNeoForgeItemStack.withoutSuspiciousStewEffects();
Name: withoutTool
Removes the <componenttype:minecraft:tool> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutTool() as T
myNeoForgeItemStack.withoutTool();
Name: withoutTrim
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutTrim() as T
myNeoForgeItemStack.withoutTrim();
Name: withoutUnbreakable
Removes the <componenttype:minecraft:unbreakable> from the ComponentAccess
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutUnbreakable() as T
myNeoForgeItemStack.withoutUnbreakable();
Name: withoutWritableBookContent
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutWritableBookContent() as T
myNeoForgeItemStack.withoutWritableBookContent();
Name: withoutWrittenBookContent
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// NeoForgeItemStack.withoutWrittenBookContent() as T
myNeoForgeItemStack.withoutWrittenBookContent();
Operators
Link to operators
Name: CONTAINS
Does the ingredient contain the given ingredient?
ZenScript Copyingredient as IIngredient in myNeoForgeItemStack
(<item:minecraft:iron_ingot> | <item:minecraft:gold_ingot>) in myNeoForgeItemStack
Name: MOD
ZenScript CopymyNeoForgeItemStack % percentage as double
Name: MUL
Use this in contexts where machines accept more than one item to state that fact.
ZenScript CopymyNeoForgeItemStack * amount as int
Name: OR
ZenScript CopymyNeoForgeItemStack | other as IIngredient
Properties
Link to properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name amount | Type int | Has Getter true | Has Setter false | Description Gets the amount of Items in the ItemStack |
Name attributeModifiers | Type ItemAttributeModifiers | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:attribute_modifiers> |
Name bannerPatterns | Type BannerPatternLayers | Has Getter true | Has Setter false | Description ​ |
Name baseColor | Type invalid | Has Getter true | Has Setter false | Description ​ |
Name bees | Type stdlib.List<BeehiveBlockEntityOccupant> | Has Getter true | Has Setter false | Description ​ |
Name blockEntityData | Type CustomData | Has Getter true | Has Setter false | Description ​ |
Name blockState | Type BlockItemStateProperties | Has Getter true | Has Setter false | Description ​ |
Name bucketEntityData | Type CustomData | Has Getter true | Has Setter false | Description ​ |
Name bundleContents | Type BundleContents | Has Getter true | Has Setter false | Description ​ |
Name burnTime | Type void | Has Getter false | Has Setter true | Description Sets the burn time of this ingredient, for use in the furnace and other machines |
Name canBreak | Type invalid | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:can_break> |
Name canPlaceOn | Type invalid | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:can_place_on> |
Name chargedProjectiles | Type ChargedProjectiles | Has Getter true | Has Setter false | Description ​ |
Name componentsPatch | Type DataComponentPatch | Has Getter true | Has Setter false | Description ​ |
Name container | Type ItemContainerContents | Has Getter true | Has Setter false | Description ​ |
Name containerLoot | Type SeededContainerLoot | Has Getter true | Has Setter false | Description ​ |
Name creativeSlotLock | Type boolean | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:creative_slot_lock> |
Name customData | Type CustomData | Has Getter true | Has Setter false | Description Gets the data in the <componenttype:minecraft:custom_data> |
Name customModelData | Type CustomModelData | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:custom_model_data> |
Name customName | Type Component | Has Getter true | Has Setter false | Description Gets the data in the <componenttype:minecraft:custom_name> A custom name is generally displayed in italics and controlled by the user. |
Name damage | Type int | Has Getter true | Has Setter false | Description Gets the data in the <componenttype:minecraft:damage> |
Name damageableItem | Type boolean | Has Getter true | Has Setter false | Description Returns if the ItemStack is damageable I.E Swords and tools are damageable, sticks are not. |
Name damaged | Type boolean | Has Getter true | Has Setter false | Description Returns if the ItemStack is damaged I.E a Swords that is no at full durability is damaged. |
Name debugStickState | Type DebugStickState | Has Getter true | Has Setter false | Description ​ |
Name definition | Type ItemDefinition | Has Getter true | Has Setter false | Description ​ |
Name descriptionId | Type string | Has Getter true | Has Setter false | Description Returns the unlocalized Name of the Item in the ItemStack |
Name displayName | Type Component | Has Getter true | Has Setter false | Description Gets the display name of the ItemStack |
Name dyedColor | Type DyedItemColor | Has Getter true | Has Setter false | Description ​ |
Name enchantmentGlintOverride | Type boolean | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:enchantment_glint_override> If it is present, it is first checked to determine whether there is special behaviour, otherwise the code checks for enchantments. |
Name enchantments | Type ItemEnchantments | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:enchantments> |
Name entityData | Type CustomData | Has Getter true | Has Setter false | Description ​ |
Name fireworkExplosion | Type FireworkExplosion | Has Getter true | Has Setter false | Description ​ |
Name fireworks | Type Fireworks | Has Getter true | Has Setter false | Description ​ |
Name food | Type FoodProperties | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:food> |
Name hasAttributeModifiers | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has <componenttype:minecraft:attribute_modifiers> |
Name hasBannerPatterns | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasBaseColor | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasBees | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasBlockEntityData | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasBlockState | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasBucketEntityData | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasBundleContents | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasCanBreak | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has <componenttype:minecraft:can_break> |
Name hasCanPlaceOn | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has <componenttype:minecraft:can_place_on> |
Name hasChargedProjectiles | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasContainer | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasContainerLoot | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasCustomData | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has the <componenttype:minecraft:custom_data> |
Name hasCustomModelData | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has <componenttype:minecraft:custom_model_data> |
Name hasCustomName | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has the <componenttype:minecraft:custom_name> |
Name hasDamage | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has the <componenttype:minecraft:damage> |
Name hasDebugStickState | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasDyedColor | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasEnchantmentGlintOverride | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has <componenttype:minecraft:enchantment_glint_override> |
Name hasEnchantments | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has the <componenttype:minecraft:enchantments> |
Name hasEntityData | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasFireworkExplosion | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasFireworks | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasFoil | Type boolean | Has Getter true | Has Setter false | Description Returns true if this ItemStack has a foil effect. Foil is the glint / effect that is added to enchanted ItemStacks (and other items). |
Name hasFood | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has <componenttype:minecraft:food> |
Name hasInstrument | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasItemName | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has the <componenttype:minecraft:item_namegt; |
Name hasLock | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasLodestoneTracker | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasLore | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has the <componenttype:minecraft:lore> |
Name hasMapColor | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasMapDecorations | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasMapId | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasMapPostProcessing | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasMaxDamage | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has the <componenttype:minecraft:max_damage> |
Name hasMaxStackSize | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has the <componenttype:minecraft:max_stack_size> |
Name hasNoteBlockSound | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasOminousBottleAmplifier | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasPotDecorations | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasPotionContents | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasProfile | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasRarity | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has the <componenttype:minecraft:rarity> |
Name hasRecipes | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasRepairCost | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has <componenttype:minecraft:repair_cost> |
Name hasStoredEnchantments | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasSuspiciousStewEffects | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasTool | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has <componenttype:minecraft:tool> |
Name hasTrim | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasUnbreakable | Type boolean | Has Getter true | Has Setter false | Description Checks whether the ComponentAccess has the <componenttype:minecraft:unbreakable> |
Name hasWritableBookContent | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hasWrittenBookContent | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name hideAdditionalTooltip | Type boolean | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:hide_additional_tooltip> |
Name hideTooltip | Type boolean | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:hide_tooltip> |
Name hoverName | Type Component | Has Getter true | Has Setter false | Description Gets the hover name of the ItemStack. This will give the raw name without the formatting that 'displayName' applies. |
Name instrument | Type Instrument | Has Getter true | Has Setter false | Description ​ |
Name isEnchantable | Type boolean | Has Getter true | Has Setter false | Description Can this ItemStack be enchanted? |
Name isFireResistant | Type boolean | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:fire_resistant> |
Name isImmutable | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name isIntangibleProjectile | Type boolean | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:intangible_projectile> |
Name isMutable | Type boolean | Has Getter true | Has Setter false | Description ​ |
Name itemName | Type Component | Has Getter true | Has Setter false | Description Gets the data in the <componenttype:minecraft:custom_name> In the case of items, an item name is set by the make to make a special instance of an item, such as with ominous banners. |
Name items | Type IItemStack[] | Has Getter true | Has Setter false | Description ​ |
Name lockComponent | Type invalid | Has Getter true | Has Setter false | Description ​ |
Name lodestoneTracker | Type LodestoneTracker | Has Getter true | Has Setter false | Description ​ |
Name lore | Type ItemLore | Has Getter true | Has Setter false | Description Gets the data in the <componenttype:minecraft:lore> |
Name mapColor | Type MapItemColor | Has Getter true | Has Setter false | Description ​ |
Name mapDecorations | Type MapDecorations | Has Getter true | Has Setter false | Description ​ |
Name mapId | Type invalid | Has Getter true | Has Setter false | Description ​ |
Name mapPostProcessing | Type MapPostProcessing | Has Getter true | Has Setter false | Description ​ |
Name maxDamage | Type int | Has Getter true | Has Setter false | Description Returns the max damage of the ItemStack This is the max durability of the ItemStack. |
Name maxStackSize | Type int | Has Getter true | Has Setter false | Description Gets the data in the <componenttype:minecraft:max_stack_size> |
Name noteBlockSound | Type ResourceLocation | Has Getter true | Has Setter false | Description ​ |
Name ominousBottleAmplifier | Type int | Has Getter true | Has Setter false | Description ​ |
Name owner | Type string | Has Getter true | Has Setter false | Description Gets owning mod for the Item in this IItemStack |
Name potDecorations | Type PotDecorations | Has Getter true | Has Setter false | Description ​ |
Name potionContents | Type invalid | Has Getter true | Has Setter false | Description ​ |
Name profile | Type ResolvableProfile | Has Getter true | Has Setter false | Description ​ |
Name prototype | Type DataComponentMap | Has Getter true | Has Setter false | Description ​ |
Name rarity | Type Rarity | Has Getter true | Has Setter false | Description Gets the data in the <componenttype:minecraft:rarity> |
Name recipes | Type stdlib.List<ResourceLocation> | Has Getter true | Has Setter false | Description ​ |
Name registryName | Type ResourceLocation | Has Getter true | Has Setter false | Description Gets the registry name for the Item in this IItemStack |
Name repairCost | Type int | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:repair_cost> |
Name stackable | Type boolean | Has Getter true | Has Setter false | Description Returns if the ItemStack can have an amount greater than 1 I.E Swords and tools are not stackable, sticks are. |
Name storedEnchantments | Type ItemEnchantments | Has Getter true | Has Setter false | Description ​ |
Name suspiciousStewEffects | Type SuspiciousStewEffects | Has Getter true | Has Setter false | Description ​ |
Name tool | Type Tool | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:tool> |
Name trim | Type ArmorTrim | Has Getter true | Has Setter false | Description ​ |
Name unbreakable | Type Unbreakable | Has Getter true | Has Setter false | Description Gets the data in the <componenttype:minecraft:unbreakable> |
Name useDuration | Type int | Has Getter true | Has Setter false | Description Gets the use duration of the ItemStack |
Name useOnRelease | Type boolean | Has Getter true | Has Setter false | Description Returns true if this stack is considered a crossbow item |
Name writableBookContent | Type WritableBookContent | Has Getter true | Has Setter false | Description ​ |
Name writtenBookContent | Type WrittenBookContent | Has Getter true | Has Setter false | Description ​ |