ComponentAccess

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.component.ComponentAccess;

Description

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
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.

Members

Getter
Gets the data in <componenttype:minecraft:attribute_modifiers>
script.zs
// ComponentAccess<T : ComponentAccess>.attributeModifiers as ItemAttributeModifiers
myComponentAccess.attributeModifiers

Return Type: ItemAttributeModifiers

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.bannerPatterns as BannerPatternLayers
myComponentAccess.bannerPatterns

Return Type: BannerPatternLayers

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.baseColor as DyeColor
myComponentAccess.baseColor

Return Type: DyeColor

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.bees as List<BeehiveBlockEntityOccupant>
myComponentAccess.bees

Return Type: List<BeehiveBlockEntityOccupant>

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.blockEntityData as CustomData
myComponentAccess.blockEntityData

Return Type: CustomData

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.blockState as BlockItemStateProperties
myComponentAccess.blockState

Return Type: BlockItemStateProperties

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.bucketEntityData as CustomData
myComponentAccess.bucketEntityData

Return Type: CustomData

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.bundleContents as BundleContents
myComponentAccess.bundleContents

Return Type: BundleContents

Getter
Gets the data in &lt;componenttype:minecraft:can_break&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.canBreak as AdventureModePredicate
myComponentAccess.canBreak

Return Type: AdventureModePredicate

Getter
Gets the data in &lt;componenttype:minecraft:can_place_on&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.canPlaceOn as AdventureModePredicate
myComponentAccess.canPlaceOn

Return Type: AdventureModePredicate

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.chargedProjectiles as ChargedProjectiles
myComponentAccess.chargedProjectiles

Return Type: ChargedProjectiles

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.container as ItemContainerContents
myComponentAccess.container

Return Type: ItemContainerContents

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.containerLoot as SeededContainerLoot
myComponentAccess.containerLoot

Return Type: SeededContainerLoot

Getter
Gets the data in &lt;componenttype:minecraft:creative_slot_lock&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.creativeSlotLock as bool
myComponentAccess.creativeSlotLock

Return Type: bool

Getter
Gets the data in the &lt;componenttype:minecraft:custom_data&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.customData as CustomData
myComponentAccess.customData

Return Type: CustomData

Getter
Gets the data in &lt;componenttype:minecraft:custom_model_data&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.customModelData as CustomModelData
myComponentAccess.customModelData

Return Type: CustomModelData

Getter
Gets the data in the &lt;componenttype:minecraft:custom_name&gt;
A custom name is generally displayed in italics and controlled by the user.
script.zs
// ComponentAccess<T : ComponentAccess>.customName as Component
myComponentAccess.customName

Return Type: Component

Getter
Gets the data in the &lt;componenttype:minecraft:damage&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.damage as int
myComponentAccess.damage

Return Type: int

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.debugStickState as DebugStickState
myComponentAccess.debugStickState

Return Type: DebugStickState

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.dyedColor as DyedItemColor
myComponentAccess.dyedColor

Return Type: DyedItemColor

Getter
Gets the data in &lt;componenttype:minecraft:enchantment_glint_override&gt;
If it is present, it is first checked to determine whether there is special behaviour, otherwise the code checks for enchantments.
script.zs
// ComponentAccess<T : ComponentAccess>.enchantmentGlintOverride as bool
myComponentAccess.enchantmentGlintOverride

Return Type: bool

Getter
Gets the data in &lt;componenttype:minecraft:enchantments&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.enchantments as ItemEnchantments
myComponentAccess.enchantments

Return Type: ItemEnchantments

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.entityData as CustomData
myComponentAccess.entityData

Return Type: CustomData

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.fireworkExplosion as FireworkExplosion
myComponentAccess.fireworkExplosion

Return Type: FireworkExplosion

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.fireworks as Fireworks
myComponentAccess.fireworks

Return Type: Fireworks

Getter
Gets the data in &lt;componenttype:minecraft:food&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.food as FoodProperties
myComponentAccess.food

Return Type: FoodProperties

Getter
Checks whether the ComponentAccess has &lt;componenttype:minecraft:attribute_modifiers&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasAttributeModifiers as bool
myComponentAccess.hasAttributeModifiers

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasBannerPatterns as bool
myComponentAccess.hasBannerPatterns

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasBaseColor as bool
myComponentAccess.hasBaseColor

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasBees as bool
myComponentAccess.hasBees

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasBlockEntityData as bool
myComponentAccess.hasBlockEntityData

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasBlockState as bool
myComponentAccess.hasBlockState

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasBucketEntityData as bool
myComponentAccess.hasBucketEntityData

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasBundleContents as bool
myComponentAccess.hasBundleContents

Return Type: bool

Getter
Checks whether the ComponentAccess has &lt;componenttype:minecraft:can_break&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasCanBreak as bool
myComponentAccess.hasCanBreak

Return Type: bool

Getter
Checks whether the ComponentAccess has &lt;componenttype:minecraft:can_place_on&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasCanPlaceOn as bool
myComponentAccess.hasCanPlaceOn

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasChargedProjectiles as bool
myComponentAccess.hasChargedProjectiles

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasContainer as bool
myComponentAccess.hasContainer

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasContainerLoot as bool
myComponentAccess.hasContainerLoot

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:custom_data&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasCustomData as bool
myComponentAccess.hasCustomData

Return Type: bool

Getter
Checks whether the ComponentAccess has &lt;componenttype:minecraft:custom_model_data&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasCustomModelData as bool
myComponentAccess.hasCustomModelData

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:custom_name&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasCustomName as bool
myComponentAccess.hasCustomName

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:damage&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasDamage as bool
myComponentAccess.hasDamage

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasDebugStickState as bool
myComponentAccess.hasDebugStickState

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasDyedColor as bool
myComponentAccess.hasDyedColor

Return Type: bool

Getter
Checks whether the ComponentAccess has &lt;componenttype:minecraft:enchantment_glint_override&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasEnchantmentGlintOverride as bool
myComponentAccess.hasEnchantmentGlintOverride

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:enchantments&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasEnchantments as bool
myComponentAccess.hasEnchantments

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasEntityData as bool
myComponentAccess.hasEntityData

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasFireworkExplosion as bool
myComponentAccess.hasFireworkExplosion

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasFireworks as bool
myComponentAccess.hasFireworks

Return Type: bool

Getter
Checks whether the ComponentAccess has &lt;componenttype:minecraft:food&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasFood as bool
myComponentAccess.hasFood

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasInstrument as bool
myComponentAccess.hasInstrument

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:item_namegt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasItemName as bool
myComponentAccess.hasItemName

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasLock as bool
myComponentAccess.hasLock

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasLodestoneTracker as bool
myComponentAccess.hasLodestoneTracker

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:lore&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasLore as bool
myComponentAccess.hasLore

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasMapColor as bool
myComponentAccess.hasMapColor

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasMapDecorations as bool
myComponentAccess.hasMapDecorations

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasMapId as bool
myComponentAccess.hasMapId

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasMapPostProcessing as bool
myComponentAccess.hasMapPostProcessing

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:max_damage&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasMaxDamage as bool
myComponentAccess.hasMaxDamage

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:max_stack_size&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasMaxStackSize as bool
myComponentAccess.hasMaxStackSize

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasNoteBlockSound as bool
myComponentAccess.hasNoteBlockSound

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasOminousBottleAmplifier as bool
myComponentAccess.hasOminousBottleAmplifier

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasPotDecorations as bool
myComponentAccess.hasPotDecorations

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasPotionContents as bool
myComponentAccess.hasPotionContents

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasProfile as bool
myComponentAccess.hasProfile

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:rarity&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasRarity as bool
myComponentAccess.hasRarity

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasRecipes as bool
myComponentAccess.hasRecipes

Return Type: bool

Getter
Checks whether the ComponentAccess has &lt;componenttype:minecraft:repair_cost&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasRepairCost as bool
myComponentAccess.hasRepairCost

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasStoredEnchantments as bool
myComponentAccess.hasStoredEnchantments

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasSuspiciousStewEffects as bool
myComponentAccess.hasSuspiciousStewEffects

Return Type: bool

Getter
Checks whether the ComponentAccess has &lt;componenttype:minecraft:tool&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasTool as bool
myComponentAccess.hasTool

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasTrim as bool
myComponentAccess.hasTrim

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:unbreakable&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hasUnbreakable as bool
myComponentAccess.hasUnbreakable

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasWritableBookContent as bool
myComponentAccess.hasWritableBookContent

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.hasWrittenBookContent as bool
myComponentAccess.hasWrittenBookContent

Return Type: bool

Getter
Gets the data in &lt;componenttype:minecraft:hide_additional_tooltip&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hideAdditionalTooltip as bool
myComponentAccess.hideAdditionalTooltip

Return Type: bool

Getter
Gets the data in &lt;componenttype:minecraft:hide_tooltip&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.hideTooltip as bool
myComponentAccess.hideTooltip

Return Type: bool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.instrument as Instrument
myComponentAccess.instrument

Return Type: Instrument

Getter
Gets the data in &lt;componenttype:minecraft:fire_resistant&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.isFireResistant as bool
myComponentAccess.isFireResistant

Return Type: bool

Getter
Gets the data in &lt;componenttype:minecraft:intangible_projectile&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.isIntangibleProjectile as bool
myComponentAccess.isIntangibleProjectile

Return Type: bool

Getter
Gets the data in the &lt;componenttype:minecraft:custom_name&gt;
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.
script.zs
// ComponentAccess<T : ComponentAccess>.itemName as Component
myComponentAccess.itemName

Return Type: Component

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.lockComponent as LockCode
myComponentAccess.lockComponent

Return Type: LockCode

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.lodestoneTracker as LodestoneTracker
myComponentAccess.lodestoneTracker

Return Type: LodestoneTracker

Getter
Gets the data in the &lt;componenttype:minecraft:lore&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.lore as ItemLore
myComponentAccess.lore

Return Type: ItemLore

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.mapColor as MapItemColor
myComponentAccess.mapColor

Return Type: MapItemColor

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.mapDecorations as MapDecorations
myComponentAccess.mapDecorations

Return Type: MapDecorations

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.mapId as MapId
myComponentAccess.mapId

Return Type: MapId

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.mapPostProcessing as MapPostProcessing
myComponentAccess.mapPostProcessing

Return Type: MapPostProcessing

Getter
Gets the data in the &lt;componenttype:minecraft:max_damage&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.maxDamage as int
myComponentAccess.maxDamage

Return Type: int

Getter
Gets the data in the &lt;componenttype:minecraft:max_stack_size&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.maxStackSize as int
myComponentAccess.maxStackSize

Return Type: int

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.noteBlockSound as ResourceLocation
myComponentAccess.noteBlockSound

Return Type: ResourceLocation

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.ominousBottleAmplifier as int
myComponentAccess.ominousBottleAmplifier

Return Type: int

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.potDecorations as PotDecorations
myComponentAccess.potDecorations

Return Type: PotDecorations

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.potionContents as PotionContents
myComponentAccess.potionContents

Return Type: PotionContents

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.profile as ResolvableProfile
myComponentAccess.profile

Return Type: ResolvableProfile

Getter
Gets the data in the &lt;componenttype:minecraft:rarity&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.rarity as Rarity
myComponentAccess.rarity

Return Type: Rarity

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.recipes as List<ResourceLocation>
myComponentAccess.recipes

Return Type: List<ResourceLocation>

Getter
Gets the data in &lt;componenttype:minecraft:repair_cost&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.repairCost as int
myComponentAccess.repairCost

Return Type: int

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.storedEnchantments as ItemEnchantments
myComponentAccess.storedEnchantments

Return Type: ItemEnchantments

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.suspiciousStewEffects as SuspiciousStewEffects
myComponentAccess.suspiciousStewEffects

Return Type: SuspiciousStewEffects

Getter
Gets the data in &lt;componenttype:minecraft:tool&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.tool as Tool
myComponentAccess.tool

Return Type: Tool

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.trim as ArmorTrim
myComponentAccess.trim

Return Type: ArmorTrim

Getter
Gets the data in the &lt;componenttype:minecraft:unbreakable&gt;
script.zs
// ComponentAccess<T : ComponentAccess>.unbreakable as Unbreakable
myComponentAccess.unbreakable

Return Type: Unbreakable

withAttributeModifiers(modifiers as ItemAttributeModifiers) as ComponentAccess
Sets the &lt;componenttype:minecraft:attribute_modifiers&gt; of the ComponentAccess to have the given ItemAttributeModifiers

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withAttributeModifiers(modifiers as ItemAttributeModifiers) as ComponentAccess;
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(););

Parameters:

modifiers Type: ItemAttributeModifiers - The attributes to give to the item.

Return Type: ComponentAccess

withAttributeModifiers(modifier as Entry, showInTooltip as bool = true) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withAttributeModifiers(modifier as ItemAttributeModifiersEntry, showInTooltip as bool = true) as ComponentAccess;
myComponentAccess.withAttributeModifiers(myEntry, myBool);

Parameters:

showInTooltip (optional) Type: bool

Default Value: true

Return Type: ComponentAccess

withAttributeModifiers(modifiers as List<Entry>, showInTooltip as bool = true) as ComponentAccess
script.zs
// ComponentAccess<T : ComponentAccess>.withAttributeModifiers(modifiers as List<ItemAttributeModifiersEntry>, showInTooltip as bool = true) as ComponentAccess;
myComponentAccess.withAttributeModifiers(myList, myBool);

Parameters:

showInTooltip (optional) Type: bool

Default Value: true

Return Type: ComponentAccess

withBannerPatterns(layers as List<Layer>) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withBannerPatterns(layers as List<BannerPatternLayersLayer>) as ComponentAccess;
myComponentAccess.withBannerPatterns(myList);

Parameters:

Return Type: ComponentAccess

withBannerPatterns(layers as BannerPatternLayers) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withBannerPatterns(layers as BannerPatternLayers) as ComponentAccess;
myComponentAccess.withBannerPatterns(myBannerPatternLayers);

Parameters:

Return Type: ComponentAccess

withBaseColor(color as DyeColor) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withBaseColor(color as DyeColor) as ComponentAccess;
myComponentAccess.withBaseColor(myDyeColor);

Parameters:

color Type: DyeColor

Return Type: ComponentAccess

withBees(occupants as List<Occupant>) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withBees(occupants as List<BeehiveBlockEntityOccupant>) as ComponentAccess;
myComponentAccess.withBees(myList);

Parameters:

Return Type: ComponentAccess

withBlockEntityData(data as MapData) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withBlockEntityData(data as MapData) as ComponentAccess;
myComponentAccess.withBlockEntityData(myMapData);

Parameters:

data Type: MapData

Return Type: ComponentAccess

withBlockEntityData(data as CustomData) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withBlockEntityData(data as CustomData) as ComponentAccess;
myComponentAccess.withBlockEntityData(myCustomData);

Parameters:

data Type: CustomData

Return Type: ComponentAccess

withBlockState(properties as BlockItemStateProperties) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withBlockState(properties as BlockItemStateProperties) as ComponentAccess;
myComponentAccess.withBlockState(myBlockItemStateProperties);

Parameters:

Return Type: ComponentAccess

withBucketEntityData(data as MapData) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withBucketEntityData(data as MapData) as ComponentAccess;
myComponentAccess.withBucketEntityData(myMapData);

Parameters:

data Type: MapData

Return Type: ComponentAccess

withBucketEntityData(data as CustomData) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withBucketEntityData(data as CustomData) as ComponentAccess;
myComponentAccess.withBucketEntityData(myCustomData);

Parameters:

data Type: CustomData

Return Type: ComponentAccess

withBundleContents(contents as List<IItemStack>) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withBundleContents(contents as List<IItemStack>) as ComponentAccess;
myComponentAccess.withBundleContents(myList);

Parameters:

contents Type: List<IItemStack>

Return Type: ComponentAccess

withBundleContents(contents as BundleContents) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withBundleContents(contents as BundleContents) as ComponentAccess;
myComponentAccess.withBundleContents(myBundleContents);

Parameters:

contents Type: BundleContents

Return Type: ComponentAccess

withCanBreak(predicates as List<BlockPredicate>, showInTooltip as bool = true) as ComponentAccess
Sets the &lt;componenttype:minecraft:can_break&gt; 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.

script.zs
// ComponentAccess<T : ComponentAccess>.withCanBreak(predicates as List<BlockPredicate>, showInTooltip as bool = true) as ComponentAccess;
myComponentAccess.withCanBreak(BlockPredicate.create().of(<block:minecraft:diamond_ore>).build(), true);

Parameters:

predicates Type: List<BlockPredicate> - The collection of predicates to test for
showInTooltip (optional) Type: bool - Whether to show the ability in the tooltip or not.

Default Value: true

Return Type: ComponentAccess

withCanBreak(predicate as AdventureModePredicate) as ComponentAccess
Sets the &lt;componenttype:minecraft:can_break&gt; of the ComponentAccess to have the given AdventureModePredicate

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withCanBreak(predicate as AdventureModePredicate) as ComponentAccess;
myComponentAccess.withCanBreak(myAdventureModePredicate);

Parameters:

predicate Type: AdventureModePredicate - The adventure mode predicate to use to determine whether the item can be used to break a block.

Return Type: ComponentAccess

withCanPlaceOn(predicates as List<BlockPredicate>, showInTooltip as bool = true) as ComponentAccess
Sets the &lt;componenttype:minecraft:can_place_on&gt; 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.

script.zs
// ComponentAccess<T : ComponentAccess>.withCanPlaceOn(predicates as List<BlockPredicate>, showInTooltip as bool = true) as ComponentAccess;
myComponentAccess.withCanPlaceOn(BlockPredicate.create().of(<block:minecraft:dirt>).build(), myBool);

Parameters:

predicates Type: List<BlockPredicate> - The collection of predicates to test for
showInTooltip (optional) Type: bool - Whether to show the restriction in the tooltip or not.

Default Value: true

Return Type: ComponentAccess

withCanPlaceOn(predicate as AdventureModePredicate) as ComponentAccess
Sets the &lt;componenttype:minecraft:can_place_on&gt; of the ComponentAccess to have the given AdventureModePredicate

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withCanPlaceOn(predicate as AdventureModePredicate) as ComponentAccess;
myComponentAccess.withCanPlaceOn(myAdventureModePredicate);

Parameters:

predicate Type: AdventureModePredicate - The adventure mode predicate to use to determine whether the current block can be placed on another block.

Return Type: ComponentAccess

withChargedProjectiles(item as IItemStack) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withChargedProjectiles(item as IItemStack) as ComponentAccess;
myComponentAccess.withChargedProjectiles(myIItemStack);

Parameters:

item Type: IItemStack

Return Type: ComponentAccess

withChargedProjectiles(items as List<IItemStack>) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withChargedProjectiles(items as List<IItemStack>) as ComponentAccess;
myComponentAccess.withChargedProjectiles(myList);

Parameters:

items Type: List<IItemStack>

Return Type: ComponentAccess

withChargedProjectiles(chargedProjectiles as ChargedProjectiles) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withChargedProjectiles(chargedProjectiles as ChargedProjectiles) as ComponentAccess;
myComponentAccess.withChargedProjectiles(myChargedProjectiles);

Parameters:

chargedProjectiles Type: ChargedProjectiles

Return Type: ComponentAccess

withContainer(contents as List<IItemStack>) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withContainer(contents as List<IItemStack>) as ComponentAccess;
myComponentAccess.withContainer(myList);

Parameters:

contents Type: List<IItemStack>

Return Type: ComponentAccess

withContainer(contents as ItemContainerContents) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withContainer(contents as ItemContainerContents) as ComponentAccess;
myComponentAccess.withContainer(myItemContainerContents);

Parameters:

Return Type: ComponentAccess

withContainerLoot(lootTable as ResourceKey<LootTable>, seed as long) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withContainerLoot(lootTable as ResourceKey<LootTable>, seed as long) as ComponentAccess;
myComponentAccess.withContainerLoot(myResourceKey, myLong);

Parameters:

seed Type: long

Return Type: ComponentAccess

withContainerLoot(loot as SeededContainerLoot) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withContainerLoot(loot as SeededContainerLoot) as ComponentAccess;
myComponentAccess.withContainerLoot(mySeededContainerLoot);

Parameters:

Return Type: ComponentAccess

withCreativeSlotLock() as ComponentAccess
Sets the &lt;componenttype:minecraft:creative_slot_lock&gt; of the ComponentAccess to exist.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withCreativeSlotLock() as ComponentAccess;
myComponentAccess.withCreativeSlotLock();

Return Type: ComponentAccess

withCustomData(customData as MapData) as ComponentAccess
Sets the <componenttype:minecraft:custom_data> of the ComponentAccess to have the given MapData

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withCustomData(customData as MapData) as ComponentAccess;
myComponentAccess.withCustomData({custom_ammo_thing: 1, owner: "Benji"});

Parameters:

customData Type: MapData - The MapData to set the component to.

Return Type: ComponentAccess

withCustomData(customData as CustomData) as ComponentAccess
Sets the &lt;componenttype:minecraft:custom_data&gt; of the ComponentAccess to have the given CustomData

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withCustomData(customData as CustomData) as ComponentAccess;
myComponentAccess.withCustomData(myCustomData);

Parameters:

customData Type: CustomData

Return Type: ComponentAccess

withCustomModelData(value as int) as ComponentAccess
Sets the &lt;componenttype:minecraft:custom_data&gt; of the ComponentAccess to have the given CustomData

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withCustomModelData(value as int) as ComponentAccess;
myComponentAccess.withCustomModelData(2);

Parameters:

value Type: int - The value to set the CustomModelData to

Return Type: ComponentAccess

withCustomModelData(data as CustomModelData) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withCustomModelData(data as CustomModelData) as ComponentAccess;
myComponentAccess.withCustomModelData(myCustomModelData);

Parameters:

Return Type: ComponentAccess

withCustomName(name as Component) as ComponentAccess
Sets the &lt;componenttype:minecraft:custom_name&gt; of the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withCustomName(name as Component) as ComponentAccess;
myComponentAccess.withCustomName(Component.literal("Fancy Water"));

Parameters:

name Type: Component - The component to use.

Return Type: ComponentAccess

withDamage(damage as int) as ComponentAccess
Sets the &lt;componenttype:minecraft:damage&gt; of the ComponentAccess to have the given value. Damage is related to durability.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withDamage(damage as int) as ComponentAccess;
myComponentAccess.withDamage(16);

Parameters:

damage Type: int - The new damage of the ComponentAccess.

Return Type: ComponentAccess

withDebugStickState(state as DebugStickState) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withDebugStickState(state as DebugStickState) as ComponentAccess;
myComponentAccess.withDebugStickState(myDebugStickState);

Parameters:

Return Type: ComponentAccess

withDyedColor(rgb as int, showInTooltip as bool = true) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withDyedColor(rgb as int, showInTooltip as bool = true) as ComponentAccess;
myComponentAccess.withDyedColor(myInt, myBool);

Parameters:

rgb Type: int
showInTooltip (optional) Type: bool

Default Value: true

Return Type: ComponentAccess

withDyedColor(color as DyedItemColor) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withDyedColor(color as DyedItemColor) as ComponentAccess;
myComponentAccess.withDyedColor(myDyedItemColor);

Parameters:

Return Type: ComponentAccess

withEnchantment(enchantment as Enchantment, level as int = 1) as ComponentAccess
Sets the &lt;componenttype:minecraft:enchantments&gt; of the ComponentAccess to have the given Enchantment and level.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withEnchantment(enchantment as Enchantment, level as int = 1) as ComponentAccess;
myComponentAccess.withEnchantment(<enchantment:minecraft:efficiency>, 4);

Parameters:

enchantment Type: Enchantment - The enchantment to add
level (optional) Type: int - The level of the enchantment to set

Default Value: 1

Return Type: ComponentAccess

withEnchantmentGlintOverride(value as bool) as ComponentAccess
Sets the &lt;componenttype:minecraft:enchantment_glint_override&gt; 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.

script.zs
// ComponentAccess<T : ComponentAccess>.withEnchantmentGlintOverride(value as bool) as ComponentAccess;
myComponentAccess.withEnchantmentGlintOverride(true);

Parameters:

value Type: bool - The value of the override, as described above

Return Type: ComponentAccess

withEnchantments(enchantments as ItemEnchantments) as ComponentAccess
Sets the &lt;componenttype:minecraft:enchantments&gt; of the ComponentAccess to have the given ItemEnchantments

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withEnchantments(enchantments as ItemEnchantments) as ComponentAccess;
myComponentAccess.withEnchantments(myItemEnchantments);

Parameters:

enchantments Type: ItemEnchantments

Return Type: ComponentAccess

withEntityData(data as MapData) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withEntityData(data as MapData) as ComponentAccess;
myComponentAccess.withEntityData(myMapData);

Parameters:

data Type: MapData

Return Type: ComponentAccess

withEntityData(data as CustomData) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withEntityData(data as CustomData) as ComponentAccess;
myComponentAccess.withEntityData(myCustomData);

Parameters:

data Type: CustomData

Return Type: ComponentAccess

withFireResistant() as ComponentAccess
Sets the &lt;componenttype:minecraft:fire_resistant&gt; of the ComponentAccess to exist.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withFireResistant() as ComponentAccess;
myComponentAccess.withFireResistant();

Return Type: ComponentAccess

withFireworkExplosion(explosion as FireworkExplosion) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withFireworkExplosion(explosion as FireworkExplosion) as ComponentAccess;
myComponentAccess.withFireworkExplosion(myFireworkExplosion);

Parameters:

Return Type: ComponentAccess

withFireworks(flightDuration as int, explosions as List<FireworkExplosion>) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withFireworks(flightDuration as int, explosions as List<FireworkExplosion>) as ComponentAccess;
myComponentAccess.withFireworks(myInt, myList);

Parameters:

flightDuration Type: int
explosions Type: List<FireworkExplosion>

Return Type: ComponentAccess

withFireworks(fireworks as Fireworks) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withFireworks(fireworks as Fireworks) as ComponentAccess;
myComponentAccess.withFireworks(myFireworks);

Parameters:

fireworks Type: Fireworks

Return Type: ComponentAccess

withFood(food as FoodProperties) as ComponentAccess
Sets the &lt;componenttype:minecraft:food&gt; of the ComponentAccess to have the given FoodProperties

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withFood(food as FoodProperties) as ComponentAccess;
myComponentAccess.withFood(myFoodProperties);

Parameters:

Return Type: ComponentAccess

withHideAdditionalTooltip() as ComponentAccess
Sets the &lt;componenttype:minecraft:hide_additional_tooltip&gt; of the ComponentAccess to exist.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withHideAdditionalTooltip() as ComponentAccess;
myComponentAccess.withHideAdditionalTooltip();

Return Type: ComponentAccess

withHideTooltip() as ComponentAccess
Sets the &lt;componenttype:minecraft:hide_tooltip&gt; of the ComponentAccess to exist.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withHideTooltip() as ComponentAccess;
myComponentAccess.withHideTooltip();

Return Type: ComponentAccess

withInstrument(instrument as Instrument) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withInstrument(instrument as Instrument) as ComponentAccess;
myComponentAccess.withInstrument(myInstrument);

Parameters:

instrument Type: Instrument

Return Type: ComponentAccess

withIntangibleProjectile() as ComponentAccess
Sets the &lt;componenttype:minecraft:intangible_projectile&gt; of the ComponentAccess to have exist.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withIntangibleProjectile() as ComponentAccess;
myComponentAccess.withIntangibleProjectile();

Return Type: ComponentAccess

withItemName(name as Component) as ComponentAccess
Sets the &lt;componenttype:minecraft:item_name&gt; of the ComponentAccess to have the given Component

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withItemName(name as Component) as ComponentAccess;
myComponentAccess.withItemName(Component.literal("Fancy Water"));

Parameters:

name Type: Component

Return Type: ComponentAccess

withLock(code as string) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withLock(code as string) as ComponentAccess;
myComponentAccess.withLock(myString);

Parameters:

code Type: string

Return Type: ComponentAccess

withLock(lock as LockCode) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withLock(lock as LockCode) as ComponentAccess;
myComponentAccess.withLock(myLockCode);

Parameters:

lock Type: LockCode

Return Type: ComponentAccess

withLodestoneTracker(tracker as LodestoneTracker) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withLodestoneTracker(tracker as LodestoneTracker) as ComponentAccess;
myComponentAccess.withLodestoneTracker(myLodestoneTracker);

Parameters:

Return Type: ComponentAccess

withLore(components as List<Component>) as ComponentAccess
Sets the &lt;componenttype:minecraft:lore&gt; of the ComponentAccess to have the given stdlib.List&lt;Component&gt;

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withLore(components as List<Component>) as ComponentAccess;
myComponentAccess.withLore([Component.literal("Found in a dark cave"), Component.translatable("Belonged to a Dragon")]);

Parameters:

components Type: List<Component> - The list of Components to add as lore.

Return Type: ComponentAccess

withLore(lore as ItemLore) as ComponentAccess
Sets the &lt;componenttype:minecraft:lore&gt; of the ComponentAccess to have the given ItemLore

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withLore(lore as ItemLore) as ComponentAccess;
myComponentAccess.withLore(myItemLore);

Parameters:

lore Type: ItemLore

Return Type: ComponentAccess

withMapColor(rgb as int) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withMapColor(rgb as int) as ComponentAccess;
myComponentAccess.withMapColor(myInt);

Parameters:

rgb Type: int

Return Type: ComponentAccess

withMapColor(color as MapItemColor) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withMapColor(color as MapItemColor) as ComponentAccess;
myComponentAccess.withMapColor(myMapItemColor);

Parameters:

color Type: MapItemColor

Return Type: ComponentAccess

withMapDecorations(decorations as Entry[string]) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withMapDecorations(decorations as MapDecorationsEntry[string]) as ComponentAccess;
myComponentAccess.withMapDecorations(myMap);

Parameters:

decorations Type: MapDecorationsEntry[string]

Return Type: ComponentAccess

withMapDecorations(decorations as MapDecorations) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withMapDecorations(decorations as MapDecorations) as ComponentAccess;
myComponentAccess.withMapDecorations(myMapDecorations);

Parameters:

decorations Type: MapDecorations

Return Type: ComponentAccess

withMapId(id as int) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withMapId(id as int) as ComponentAccess;
myComponentAccess.withMapId(myInt);

Parameters:

id Type: int

Return Type: ComponentAccess

withMapId(mapId as MapId) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withMapId(mapId as MapId) as ComponentAccess;
myComponentAccess.withMapId(myMapId);

Parameters:

mapId Type: MapId

Return Type: ComponentAccess

withMapPostProcessing(value as MapPostProcessing) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withMapPostProcessing(value as MapPostProcessing) as ComponentAccess;
myComponentAccess.withMapPostProcessing(myMapPostProcessing);

Parameters:

Return Type: ComponentAccess

withMaxDamage(maxDamage as int) as ComponentAccess
Sets the &lt;componenttype:minecraft:max_damage&gt; of the ComponentAccess to have the given value.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withMaxDamage(maxDamage as int) as ComponentAccess;
myComponentAccess.withMaxDamage(1024);

Parameters:

maxDamage Type: int

Return Type: ComponentAccess

withMaxStackSize(maxStackSize as int) as ComponentAccess
Sets the &lt;componenttype:minecraft:stack_size&gt; 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.

script.zs
// ComponentAccess<T : ComponentAccess>.withMaxStackSize(maxStackSize as int) as ComponentAccess;
myComponentAccess.withMaxStackSize(16);

Parameters:

maxStackSize Type: int - The new maxStackSize of the ComponentAccess.

Return Type: ComponentAccess

withNoteBlockSound(sound as ResourceLocation) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withNoteBlockSound(sound as ResourceLocation) as ComponentAccess;
myComponentAccess.withNoteBlockSound(myResourceLocation);

Parameters:

Return Type: ComponentAccess

withOminousBottleAmplifier(amplifier as int) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withOminousBottleAmplifier(amplifier as int) as ComponentAccess;
myComponentAccess.withOminousBottleAmplifier(myInt);

Parameters:

amplifier Type: int

Return Type: ComponentAccess

withoutAttributeModifiers() as ComponentAccess
Removes the &lt;componenttype:minecraft:attribute_modifiers&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutAttributeModifiers() as ComponentAccess;
myComponentAccess.withoutAttributeModifiers();

Return Type: ComponentAccess

withoutBannerPatterns() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutBannerPatterns() as ComponentAccess;
myComponentAccess.withoutBannerPatterns();

Return Type: ComponentAccess

withoutBaseColor() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutBaseColor() as ComponentAccess;
myComponentAccess.withoutBaseColor();

Return Type: ComponentAccess

withoutBees() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutBees() as ComponentAccess;
myComponentAccess.withoutBees();

Return Type: ComponentAccess

withoutBlockEntityData() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutBlockEntityData() as ComponentAccess;
myComponentAccess.withoutBlockEntityData();

Return Type: ComponentAccess

withoutBlockState() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutBlockState() as ComponentAccess;
myComponentAccess.withoutBlockState();

Return Type: ComponentAccess

withoutBucketEntityData() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutBucketEntityData() as ComponentAccess;
myComponentAccess.withoutBucketEntityData();

Return Type: ComponentAccess

withoutBundleContents() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutBundleContents() as ComponentAccess;
myComponentAccess.withoutBundleContents();

Return Type: ComponentAccess

withoutCanBreak() as ComponentAccess
Removes the &lt;componenttype:minecraft:can_break&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutCanBreak() as ComponentAccess;
myComponentAccess.withoutCanBreak();

Return Type: ComponentAccess

withoutCanPlaceOn() as ComponentAccess
Removes the &lt;componenttype:minecraft:can_place_on&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutCanPlaceOn() as ComponentAccess;
myComponentAccess.withoutCanPlaceOn();

Return Type: ComponentAccess

withoutChargedProjectiles() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutChargedProjectiles() as ComponentAccess;
myComponentAccess.withoutChargedProjectiles();

Return Type: ComponentAccess

withoutContainer() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutContainer() as ComponentAccess;
myComponentAccess.withoutContainer();

Return Type: ComponentAccess

withoutContainerLoot() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutContainerLoot() as ComponentAccess;
myComponentAccess.withoutContainerLoot();

Return Type: ComponentAccess

withoutCreativeSlotLock() as ComponentAccess
Removes the &lt;componenttype:minecraft:creative_slot_lock&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutCreativeSlotLock() as ComponentAccess;
myComponentAccess.withoutCreativeSlotLock();

Return Type: ComponentAccess

withoutCustomData() as ComponentAccess
Removes the &lt;componenttype:minecraft:custom_data&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutCustomData() as ComponentAccess;
myComponentAccess.withoutCustomData();

Return Type: ComponentAccess

withoutCustomModelData() as ComponentAccess
Removes the &lt;componenttype:minecraft:custom_model_data&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutCustomModelData() as ComponentAccess;
myComponentAccess.withoutCustomModelData();

Return Type: ComponentAccess

withoutCustomName() as ComponentAccess
Removes the &lt;componenttype:minecraft:custom_name&gt; from the ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutCustomName() as ComponentAccess;
myComponentAccess.withoutCustomName();

Return Type: ComponentAccess

withoutDamage() as ComponentAccess
Removes the &lt;componenttype:minecraft:damage&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutDamage() as ComponentAccess;
myComponentAccess.withoutDamage();

Return Type: ComponentAccess

withoutDebugStickState() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutDebugStickState() as ComponentAccess;
myComponentAccess.withoutDebugStickState();

Return Type: ComponentAccess

withoutDyedColor() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutDyedColor() as ComponentAccess;
myComponentAccess.withoutDyedColor();

Return Type: ComponentAccess

withoutEnchantment(enchantment as Enchantment) as ComponentAccess
Removes the Enchantment from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutEnchantment(enchantment as Enchantment) as ComponentAccess;
myComponentAccess.withoutEnchantment(<enchantment:minecraft:mending>);

Parameters:

enchantment Type: Enchantment - The Enchantment to remove

Return Type: ComponentAccess

withoutEnchantmentGlintOverride() as ComponentAccess
Removes the &lt;componenttype:minecraft:enchantment_glint_override&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutEnchantmentGlintOverride() as ComponentAccess;
myComponentAccess.withoutEnchantmentGlintOverride();

Return Type: ComponentAccess

withoutEnchantments() as ComponentAccess
Removes the &lt;componenttype:minecraft:enchantments&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutEnchantments() as ComponentAccess;
myComponentAccess.withoutEnchantments();

Return Type: ComponentAccess

withoutEntityDate() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutEntityDate() as ComponentAccess;
myComponentAccess.withoutEntityDate();

Return Type: ComponentAccess

withoutFireResistant() as ComponentAccess
Removes the &lt;componenttype:minecraft:fire_resistant&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutFireResistant() as ComponentAccess;
myComponentAccess.withoutFireResistant();

Return Type: ComponentAccess

withoutFireworkExplosion() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutFireworkExplosion() as ComponentAccess;
myComponentAccess.withoutFireworkExplosion();

Return Type: ComponentAccess

withoutFireworks() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutFireworks() as ComponentAccess;
myComponentAccess.withoutFireworks();

Return Type: ComponentAccess

withoutFood() as ComponentAccess
Removes the &lt;componenttype:minecraft:food&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutFood() as ComponentAccess;
myComponentAccess.withoutFood();

Return Type: ComponentAccess

withoutHideAdditionalTooltip() as ComponentAccess
Removes the &lt;componenttype:minecraft:hide_additional_tooltip&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutHideAdditionalTooltip() as ComponentAccess;
myComponentAccess.withoutHideAdditionalTooltip();

Return Type: ComponentAccess

withoutHideTooltip() as ComponentAccess
Removes the &lt;componenttype:minecraft:hide_tooltip&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutHideTooltip() as ComponentAccess;
myComponentAccess.withoutHideTooltip();

Return Type: ComponentAccess

withoutInstrument() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutInstrument() as ComponentAccess;
myComponentAccess.withoutInstrument();

Return Type: ComponentAccess

withoutIntangibleProjectile() as ComponentAccess
Removes the &lt;componenttype:minecraft:intangible_projectile&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutIntangibleProjectile() as ComponentAccess;
myComponentAccess.withoutIntangibleProjectile();

Return Type: ComponentAccess

withoutItemName() as ComponentAccess
Removes the &lt;componenttype:minecraft:item_name&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutItemName() as ComponentAccess;
myComponentAccess.withoutItemName();

Return Type: ComponentAccess

withoutLock() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutLock() as ComponentAccess;
myComponentAccess.withoutLock();

Return Type: ComponentAccess

withoutLodestoneTracker() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutLodestoneTracker() as ComponentAccess;
myComponentAccess.withoutLodestoneTracker();

Return Type: ComponentAccess

withoutLore() as ComponentAccess
Removes the &lt;componenttype:minecraft:lore&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutLore() as ComponentAccess;
myComponentAccess.withoutLore();

Return Type: ComponentAccess

withoutMapColor() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutMapColor() as ComponentAccess;
myComponentAccess.withoutMapColor();

Return Type: ComponentAccess

withoutMapDecorations() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutMapDecorations() as ComponentAccess;
myComponentAccess.withoutMapDecorations();

Return Type: ComponentAccess

withoutMapId() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutMapId() as ComponentAccess;
myComponentAccess.withoutMapId();

Return Type: ComponentAccess

withoutMapPostProcessing() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutMapPostProcessing() as ComponentAccess;
myComponentAccess.withoutMapPostProcessing();

Return Type: ComponentAccess

withoutMaxDamage() as ComponentAccess
Removes the &lt;componenttype:minecraft:max_damage&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutMaxDamage() as ComponentAccess;
myComponentAccess.withoutMaxDamage();

Return Type: ComponentAccess

withoutMaxStackSize() as ComponentAccess
Removes the &lt;componenttype:minecraft:stack_size&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutMaxStackSize() as ComponentAccess;
myComponentAccess.withoutMaxStackSize();

Return Type: ComponentAccess

withoutNoteBlockSound() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutNoteBlockSound() as ComponentAccess;
myComponentAccess.withoutNoteBlockSound();

Return Type: ComponentAccess

withoutOminousBottleAmplifier() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutOminousBottleAmplifier() as ComponentAccess;
myComponentAccess.withoutOminousBottleAmplifier();

Return Type: ComponentAccess

withoutPotDecorations() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutPotDecorations() as ComponentAccess;
myComponentAccess.withoutPotDecorations();

Return Type: ComponentAccess

withoutPotionContents() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutPotionContents() as ComponentAccess;
myComponentAccess.withoutPotionContents();

Return Type: ComponentAccess

withoutProfile() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutProfile() as ComponentAccess;
myComponentAccess.withoutProfile();

Return Type: ComponentAccess

withoutRarity() as ComponentAccess
Removes the &lt;componenttype:minecraft:rarity&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutRarity() as ComponentAccess;
myComponentAccess.withoutRarity();

Return Type: ComponentAccess

withoutRecipes() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutRecipes() as ComponentAccess;
myComponentAccess.withoutRecipes();

Return Type: ComponentAccess

withoutRepairCost() as ComponentAccess
Removes the &lt;componenttype:minecraft:repair_cost&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutRepairCost() as ComponentAccess;
myComponentAccess.withoutRepairCost();

Return Type: ComponentAccess

withoutStoredEnchantments() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutStoredEnchantments() as ComponentAccess;
myComponentAccess.withoutStoredEnchantments();

Return Type: ComponentAccess

withoutSuspiciousStewEffects() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutSuspiciousStewEffects() as ComponentAccess;
myComponentAccess.withoutSuspiciousStewEffects();

Return Type: ComponentAccess

withoutTool() as ComponentAccess
Removes the &lt;componenttype:minecraft:tool&gt; from the ComponentAccess.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutTool() as ComponentAccess;
myComponentAccess.withoutTool();

Return Type: ComponentAccess

withoutTrim() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutTrim() as ComponentAccess;
myComponentAccess.withoutTrim();

Return Type: ComponentAccess

withoutUnbreakable() as ComponentAccess
Removes the &lt;componenttype:minecraft:unbreakable&gt; from the ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutUnbreakable() as ComponentAccess;
myComponentAccess.withoutUnbreakable();

Return Type: ComponentAccess

withoutWritableBookContent() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutWritableBookContent() as ComponentAccess;
myComponentAccess.withoutWritableBookContent();

Return Type: ComponentAccess

withoutWrittenBookContent() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withoutWrittenBookContent() as ComponentAccess;
myComponentAccess.withoutWrittenBookContent();

Return Type: ComponentAccess

withPotDecorations(back as Item, left as Item, right as Item, front as Item) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withPotDecorations(back as ItemDefinition, left as ItemDefinition, right as ItemDefinition, front as ItemDefinition) as ComponentAccess;
myComponentAccess.withPotDecorations(myItem, myItem, myItem, myItem);

Return Type: ComponentAccess

withPotDecorations(decorations as PotDecorations) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withPotDecorations(decorations as PotDecorations) as ComponentAccess;
myComponentAccess.withPotDecorations(myPotDecorations);

Parameters:

decorations Type: PotDecorations

Return Type: ComponentAccess

withPotionContents(potion as Potion) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withPotionContents(potion as Potion) as ComponentAccess;
myComponentAccess.withPotionContents(myPotion);

Parameters:

potion Type: Potion

Return Type: ComponentAccess

withPotionContents(potion as Potion, customEffects as List<MobEffectInstance>) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withPotionContents(potion as Potion, customEffects as List<MobEffectInstance>) as ComponentAccess;
myComponentAccess.withPotionContents(myPotion, myList);

Parameters:

potion Type: Potion
customEffects Type: List<MobEffectInstance>

Return Type: ComponentAccess

withPotionContents(potion as Potion, customColor as int, customEffects as List<MobEffectInstance>) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withPotionContents(potion as Potion, customColor as int, customEffects as List<MobEffectInstance>) as ComponentAccess;
myComponentAccess.withPotionContents(myPotion, myInt, myList);

Parameters:

potion Type: Potion
customColor Type: int
customEffects Type: List<MobEffectInstance>

Return Type: ComponentAccess

withPotionContents(contents as PotionContents) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withPotionContents(contents as PotionContents) as ComponentAccess;
myComponentAccess.withPotionContents(myPotionContents);

Parameters:

contents Type: PotionContents

Return Type: ComponentAccess

withProfile(profile as ResolvableProfile) as ComponentAccess
script.zs
// ComponentAccess<T : ComponentAccess>.withProfile(profile as ResolvableProfile) as ComponentAccess;
myComponentAccess.withProfile(myResolvableProfile);

Parameters:

Return Type: ComponentAccess

withRarity(rarity as Rarity) as ComponentAccess
Sets the &lt;componenttype:minecraft:rarity&gt; of the ComponentAccess to have the given Rarity

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withRarity(rarity as Rarity) as ComponentAccess;
myComponentAccess.withRarity(<constant:minecraft:item/rarity:epic>);

Parameters:

rarity Type: Rarity - The rarity to set

Return Type: ComponentAccess

withRecipes(recipes as List<ResourceLocation>) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withRecipes(recipes as List<ResourceLocation>) as ComponentAccess;
myComponentAccess.withRecipes(myList);

Parameters:

recipes Type: List<ResourceLocation>

Return Type: ComponentAccess

withRepairCost(cost as int) as ComponentAccess
Sets the &lt;componenttype:minecraft:repair_cost&gt; of the ComponentAccess to have the given value.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withRepairCost(cost as int) as ComponentAccess;
myComponentAccess.withRepairCost(20);

Parameters:

cost Type: int - The repair cost

Return Type: ComponentAccess

withStoredEnchantments(enchantments as ItemEnchantments) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withStoredEnchantments(enchantments as ItemEnchantments) as ComponentAccess;
myComponentAccess.withStoredEnchantments(myItemEnchantments);

Parameters:

enchantments Type: ItemEnchantments

Return Type: ComponentAccess

withSuspiciousStewEffects(effects as List<Entry>) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withSuspiciousStewEffects(effects as List<SuspiciousStewEffectsEntry>) as ComponentAccess;
myComponentAccess.withSuspiciousStewEffects(myList);

Parameters:

Return Type: ComponentAccess

withSuspiciousStewEffects(suspiciousStewEffects as SuspiciousStewEffects) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withSuspiciousStewEffects(suspiciousStewEffects as SuspiciousStewEffects) as ComponentAccess;
myComponentAccess.withSuspiciousStewEffects(mySuspiciousStewEffects);

Parameters:

suspiciousStewEffects Type: SuspiciousStewEffects

Return Type: ComponentAccess

withTool(rules as List<Rule>, defaultMiningSpeed as float, damagePerBlock as int) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withTool(rules as List<ToolRule>, defaultMiningSpeed as float, damagePerBlock as int) as ComponentAccess;
myComponentAccess.withTool(myList, myFloat, myInt);

Parameters:

rules Type: List<ToolRule>
defaultMiningSpeed Type: float
damagePerBlock Type: int

Return Type: ComponentAccess

withTool(tool as Tool) as ComponentAccess
Sets the &lt;componenttype:minecraft:tool&gt; of the ComponentAccess to have the given Tool

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withTool(tool as Tool) as ComponentAccess;
myComponentAccess.withTool(myTool);

Parameters:

tool Type: Tool

Return Type: ComponentAccess

withTrim(trim as ArmorTrim) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withTrim(trim as ArmorTrim) as ComponentAccess;
myComponentAccess.withTrim(myArmorTrim);

Parameters:

trim Type: ArmorTrim

Return Type: ComponentAccess

withUnbreakable(showInTooltip as bool = true) as ComponentAccess
Sets the &lt;componenttype:minecraft:unbreakable&gt; of the ComponentAccess. The existance of the component makes the ComponentAccess unbreakable.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withUnbreakable(showInTooltip as bool = true) as ComponentAccess;
myComponentAccess.withUnbreakable(myBool);

Parameters:

showInTooltip (optional) Type: bool - Whether to show that the ComponentAccess is unbreakable in a tooltip.

Default Value: true

Return Type: ComponentAccess

withUnbreakable(unbreakable as Unbreakable) as ComponentAccess
Sets the &lt;componenttype:minecraft:unbreakable&gt; of the ComponentAccess. The existance of the component makes the ComponentAccess unbreakable.

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withUnbreakable(unbreakable as Unbreakable) as ComponentAccess;
myComponentAccess.withUnbreakable(myUnbreakable);

Parameters:

unbreakable Type: Unbreakable - The Unbreakable instance with the configured values.

Return Type: ComponentAccess

withWritableBookContent(pages as List<Filterable<string>>) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withWritableBookContent(pages as List<Filterable<string>>) as ComponentAccess;
myComponentAccess.withWritableBookContent(myList);

Parameters:

pages Type: List<Filterable<string>>

Return Type: ComponentAccess

withWritableBookContent(content as WritableBookContent) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withWritableBookContent(content as WritableBookContent) as ComponentAccess;
myComponentAccess.withWritableBookContent(myWritableBookContent);

Parameters:

Return Type: ComponentAccess

withWrittenBookContent(content as WrittenBookContent) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// ComponentAccess<T : ComponentAccess>.withWrittenBookContent(content as WrittenBookContent) as ComponentAccess;
myComponentAccess.withWrittenBookContent(myWrittenBookContent);

Parameters:

Return Type: ComponentAccess

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.writableBookContent as WritableBookContent
myComponentAccess.writableBookContent

Return Type: WritableBookContent

Getter
script.zs
// ComponentAccess<T : ComponentAccess>.writtenBookContent as WrittenBookContent
myComponentAccess.writtenBookContent

Return Type: WrittenBookContent