ComponentAccess<T : ComponentAccess
Link to componentaccesst--componentaccesst
An interface exposing methods to handle setting and removing DataComponents.
DataComponents are the new way of storing data in memory, instead of writing it to NBT data and to disk every time, which has a performance cost. DataComponents now occupy the space that was previously occupied or known as a NBT tag.
DataComponents are immutable. Operations that set or remove a component return a new instance of the object implementing ComponentAccess<T>
DataComponents may optionally be persistent. They also may optionally be syncronised.
In most cases, ComponentAccesses are going to be ItemStacks, although in NeoForge FluidStacks are too.
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.component.ComponentAccess;
Methods
Link to methods
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// ComponentAccess.withAttributeModifiers(modifiers as ItemAttributeModifiers) as T
myComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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// ComponentAccess.withCanBreak(predicates as stdlib.List<BlockPredicate>, showInTooltip as boolean) as T
myComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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// ComponentAccess.withCreativeSlotLock() as T
myComponentAccess.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 CopyComponentAccess.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// ComponentAccess.withCustomData(customData as MapData) as T
myComponentAccess.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 CopyComponentAccess.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// ComponentAccess.withCustomModelData(value as int) as T
myComponentAccess.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// ComponentAccess.withCustomName(name as Component) as T
myComponentAccess.withCustomName(Component.literal("Fancy Water"));
myComponentAccess.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// ComponentAccess.withDamage(damage as int) as T
myComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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// ComponentAccess.withEnchantment(enchantment as Enchantment, level as int) as T
myComponentAccess.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// ComponentAccess.withEnchantmentGlintOverride(value as boolean) as T
myComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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// ComponentAccess.withFireResistant() as T
myComponentAccess.withFireResistant();
Name: withFireworkExplosion
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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// ComponentAccess.withHideAdditionalTooltip() as T
myComponentAccess.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// ComponentAccess.withHideTooltip() as T
myComponentAccess.withHideTooltip();
Name: withInstrument
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyComponentAccess.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// ComponentAccess.withIntangibleProjectile() as T
myComponentAccess.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// ComponentAccess.withItemName(name as Component) as T
myComponentAccess.withItemName(Component.literal("Fancy Water"));
myComponentAccess.withItemName(Component.translatable("mypack.lore.fancy_water"));
Parameter | Type |
---|---|
Parameter name | Type Component |
Name: withLock
Returns: The new instance with the modified data.
Return Type: T
ZenScript CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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// ComponentAccess.withLore(components as stdlib.List<Component>) as T
myComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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// ComponentAccess.withMaxDamage(maxDamage as int) as T
myComponentAccess.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// ComponentAccess.withMaxStackSize(maxStackSize as int) as T
myComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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// ComponentAccess.withRarity(rarity as Rarity) as T
myComponentAccess.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 CopyComponentAccess.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// ComponentAccess.withRepairCost(cost as int) as T
myComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.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 CopyComponentAccess.withWrittenBookContent(content as WrittenBookContent) as T
Parameter | Type |
---|---|
Parameter content | Type WrittenBookContent |
Name: withoutAttributeModifiers
Removes the <componenttype:minecraft:attribute_modifiers> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutAttributeModifiers() as T
myComponentAccess.withoutAttributeModifiers();
Name: withoutBannerPatterns
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutBannerPatterns() as T
myComponentAccess.withoutBannerPatterns();
Name: withoutBaseColor
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutBaseColor() as T
myComponentAccess.withoutBaseColor();
Name: withoutBees
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutBees() as T
myComponentAccess.withoutBees();
Name: withoutBlockEntityData
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutBlockEntityData() as T
myComponentAccess.withoutBlockEntityData();
Name: withoutBlockState
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutBlockState() as T
myComponentAccess.withoutBlockState();
Name: withoutBucketEntityData
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutBucketEntityData() as T
myComponentAccess.withoutBucketEntityData();
Name: withoutBundleContents
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutBundleContents() as T
myComponentAccess.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// ComponentAccess.withoutCanBreak() as T
myComponentAccess.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// ComponentAccess.withoutCanPlaceOn() as T
myComponentAccess.withoutCanPlaceOn();
Name: withoutChargedProjectiles
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutChargedProjectiles() as T
myComponentAccess.withoutChargedProjectiles();
Name: withoutContainer
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutContainer() as T
myComponentAccess.withoutContainer();
Name: withoutContainerLoot
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutContainerLoot() as T
myComponentAccess.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// ComponentAccess.withoutCreativeSlotLock() as T
myComponentAccess.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// ComponentAccess.withoutCustomData() as T
myComponentAccess.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// ComponentAccess.withoutCustomModelData() as T
myComponentAccess.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// ComponentAccess.withoutCustomName() as T
myComponentAccess.withoutCustomName();
Name: withoutDamage
Removes the <componenttype:minecraft:damage> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutDamage() as T
myComponentAccess.withoutDamage();
Name: withoutDebugStickState
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutDebugStickState() as T
myComponentAccess.withoutDebugStickState();
Name: withoutDyedColor
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutDyedColor() as T
myComponentAccess.withoutDyedColor();
Name: withoutEnchantment
Removes the Enchantment from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutEnchantment(enchantment as Enchantment) as T
myComponentAccess.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// ComponentAccess.withoutEnchantmentGlintOverride() as T
myComponentAccess.withoutEnchantmentGlintOverride();
Name: withoutEnchantments
Removes the <componenttype:minecraft:enchantments> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutEnchantments() as T
myComponentAccess.withoutEnchantments();
Name: withoutEntityDate
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutEntityDate() as T
myComponentAccess.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// ComponentAccess.withoutFireResistant() as T
myComponentAccess.withoutFireResistant();
Name: withoutFireworkExplosion
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutFireworkExplosion() as T
myComponentAccess.withoutFireworkExplosion();
Name: withoutFireworks
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutFireworks() as T
myComponentAccess.withoutFireworks();
Name: withoutFood
Removes the <componenttype:minecraft:food> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutFood() as T
myComponentAccess.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// ComponentAccess.withoutHideAdditionalTooltip() as T
myComponentAccess.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// ComponentAccess.withoutHideTooltip() as T
myComponentAccess.withoutHideTooltip();
Name: withoutInstrument
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutInstrument() as T
myComponentAccess.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// ComponentAccess.withoutIntangibleProjectile() as T
myComponentAccess.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// ComponentAccess.withoutItemName() as T
myComponentAccess.withoutItemName();
Name: withoutLock
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutLock() as T
myComponentAccess.withoutLock();
Name: withoutLodestoneTracker
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutLodestoneTracker() as T
myComponentAccess.withoutLodestoneTracker();
Name: withoutLore
Removes the <componenttype:minecraft:lore> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutLore() as T
myComponentAccess.withoutLore();
Name: withoutMapColor
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutMapColor() as T
myComponentAccess.withoutMapColor();
Name: withoutMapDecorations
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutMapDecorations() as T
myComponentAccess.withoutMapDecorations();
Name: withoutMapId
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutMapId() as T
myComponentAccess.withoutMapId();
Name: withoutMapPostProcessing
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutMapPostProcessing() as T
myComponentAccess.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// ComponentAccess.withoutMaxDamage() as T
myComponentAccess.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// ComponentAccess.withoutMaxStackSize() as T
myComponentAccess.withoutMaxStackSize();
Name: withoutNoteBlockSound
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutNoteBlockSound() as T
myComponentAccess.withoutNoteBlockSound();
Name: withoutOminousBottleAmplifier
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutOminousBottleAmplifier() as T
myComponentAccess.withoutOminousBottleAmplifier();
Name: withoutPotDecorations
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutPotDecorations() as T
myComponentAccess.withoutPotDecorations();
Name: withoutPotionContents
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutPotionContents() as T
myComponentAccess.withoutPotionContents();
Name: withoutProfile
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutProfile() as T
myComponentAccess.withoutProfile();
Name: withoutRarity
Removes the <componenttype:minecraft:rarity> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutRarity() as T
myComponentAccess.withoutRarity();
Name: withoutRecipes
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutRecipes() as T
myComponentAccess.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// ComponentAccess.withoutRepairCost() as T
myComponentAccess.withoutRepairCost();
Name: withoutStoredEnchantments
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutStoredEnchantments() as T
myComponentAccess.withoutStoredEnchantments();
Name: withoutSuspiciousStewEffects
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutSuspiciousStewEffects() as T
myComponentAccess.withoutSuspiciousStewEffects();
Name: withoutTool
Removes the <componenttype:minecraft:tool> from the ComponentAccess.
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutTool() as T
myComponentAccess.withoutTool();
Name: withoutTrim
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutTrim() as T
myComponentAccess.withoutTrim();
Name: withoutUnbreakable
Removes the <componenttype:minecraft:unbreakable> from the ComponentAccess
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutUnbreakable() as T
myComponentAccess.withoutUnbreakable();
Name: withoutWritableBookContent
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutWritableBookContent() as T
myComponentAccess.withoutWritableBookContent();
Name: withoutWrittenBookContent
Returns: The new instance with the modified data.
Return Type: T
ZenScript Copy// ComponentAccess.withoutWrittenBookContent() as T
myComponentAccess.withoutWrittenBookContent();
Properties
Link to properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
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 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 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 debugStickState | Type DebugStickState | Has Getter true | Has Setter false | Description |
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 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 instrument | Type Instrument | Has Getter true | Has Setter false | Description |
Name isFireResistant | Type boolean | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:fire_resistant> |
Name isIntangibleProjectile | Type boolean | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:intangible_projectile> |
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 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 Gets the data in the <componenttype:minecraft:max_damage> |
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 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 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 repairCost | Type int | Has Getter true | Has Setter false | Description Gets the data in <componenttype:minecraft:repair_cost> |
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 writableBookContent | Type WritableBookContent | Has Getter true | Has Setter false | Description |
Name writtenBookContent | Type WrittenBookContent | Has Getter true | Has Setter false | Description |