Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

IFluidStack

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.fluid.IFluidStack;

Implements

IFluidStack implements the following interfaces:

CommandStringDisplayable,DataComponentHolder,ComponentAccess<IFluidStack>

Undocumented Interfaces

IDataComponentHolderExtension

Operators

|(other as CTFluidIngredient) as CTFluidIngredient
script.zs
// (IFluidStack | (other as FluidIngredient)) as FluidIngredient
myIFluidStack | myCTFluidIngredient

Parameters:

Return Type: FluidIngredient

in(other as IFluidStack) as bool
Checks if this IFluidStack, matches the given IFluidStack by checking if the fluids are the same, and if this fluid's amount is bigger than the given fluid's amount
script.zs
// ((other as IFluidStack) in IFluidStack) as bool
myIFluidStack in myIFluidStack

Parameters:

other Type: IFluidStack - other IFluidStack to compare against

Return Type: bool

*(amount as int) as IFluidStack
Sets the fluid amount in MilliBuckets (mB)
script.zs
// (IFluidStack * (amount as int)) as IFluidStack
myIFluidStack * myInt

Parameters:

amount Type: int - The amount to multiply this stack

Return Type: IFluidStack

Members

Getter
Gets the fluid amount in MilliBuckets (mB).
script.zs
// IFluidStack.amount as long
myIFluidStack.amount

Return Type: long

applyComponents(map as DataComponentMap) as IFluidStack
script.zs
// IFluidStack.applyComponents(map as DataComponentMap) as IFluidStack;
myIFluidStack.applyComponents(myDataComponentMap);

Parameters:

Return Type: IFluidStack

applyComponents(patch as DataComponentPatch) as IFluidStack
script.zs
// IFluidStack.applyComponents(patch as DataComponentPatch) as IFluidStack;
myIFluidStack.applyComponents(myDataComponentPatch);

Parameters:

Return Type: IFluidStack

implicit as CTFluidIngredient
script.zs
// IFluidStack as FluidIngredient
myIFluidStack as CTFluidIngredient

Return Type: FluidIngredient

asIData() as IData
script.zs
// IFluidStack.asIData() as IData;
myIFluidStack.asIData();

Return Type: IData

implicit as IData
script.zs
// IFluidStack as IData
myIFluidStack as IData

Return Type: IData

asImmutable() as IFluidStack
script.zs
// IFluidStack.asImmutable() as IFluidStack;
myIFluidStack.asImmutable();

Return Type: IFluidStack

asMutable() as IFluidStack
Makes this stack mutable

Returns: A new Stack, that is mutable.

script.zs
// IFluidStack.asMutable() as IFluidStack;
myIFluidStack.asMutable();

Return Type: IFluidStack

Getter
Gets the data in &lt;componenttype:minecraft:attribute_modifiers&gt;
script.zs
// IFluidStack.attributeModifiers as ItemAttributeModifiers
myIFluidStack.attributeModifiers

Return Type: ItemAttributeModifiers

Getter
script.zs
// IFluidStack.bannerPatterns as BannerPatternLayers
myIFluidStack.bannerPatterns

Return Type: BannerPatternLayers

Getter
script.zs
// IFluidStack.baseColor as DyeColor
myIFluidStack.baseColor

Return Type: DyeColor

Getter
script.zs
// IFluidStack.bees as List<BeehiveBlockEntityOccupant>
myIFluidStack.bees

Return Type: List<BeehiveBlockEntityOccupant>

Getter
script.zs
// IFluidStack.blockEntityData as CustomData
myIFluidStack.blockEntityData

Return Type: CustomData

Getter
script.zs
// IFluidStack.blockState as BlockItemStateProperties
myIFluidStack.blockState

Return Type: BlockItemStateProperties

Getter
script.zs
// IFluidStack.bucketEntityData as CustomData
myIFluidStack.bucketEntityData

Return Type: CustomData

Getter
script.zs
// IFluidStack.bundleContents as BundleContents
myIFluidStack.bundleContents

Return Type: BundleContents

Getter
Gets the data in &lt;componenttype:minecraft:can_break&gt;
script.zs
// IFluidStack.canBreak as AdventureModePredicate
myIFluidStack.canBreak

Return Type: AdventureModePredicate

Getter
Gets the data in &lt;componenttype:minecraft:can_place_on&gt;
script.zs
// IFluidStack.canPlaceOn as AdventureModePredicate
myIFluidStack.canPlaceOn

Return Type: AdventureModePredicate

Getter
script.zs
// IFluidStack.chargedProjectiles as ChargedProjectiles
myIFluidStack.chargedProjectiles

Return Type: ChargedProjectiles

Getter
script.zs
// IFluidStack.container as ItemContainerContents
myIFluidStack.container

Return Type: ItemContainerContents

Getter
script.zs
// IFluidStack.containerLoot as SeededContainerLoot
myIFluidStack.containerLoot

Return Type: SeededContainerLoot

copy() as IFluidStack
Copies the stack. Only needed when mutable stacks are involved.

Returns: A new stack, that contains the same info as this one

script.zs
// IFluidStack.copy() as IFluidStack;
myIFluidStack.copy();

Return Type: IFluidStack

Getter
Gets the data in &lt;componenttype:minecraft:creative_slot_lock&gt;
script.zs
// IFluidStack.creativeSlotLock as bool
myIFluidStack.creativeSlotLock

Return Type: bool

Getter
Gets the data in the &lt;componenttype:minecraft:custom_data&gt;
script.zs
// IFluidStack.customData as CustomData
myIFluidStack.customData

Return Type: CustomData

Getter
Gets the data in &lt;componenttype:minecraft:custom_model_data&gt;
script.zs
// IFluidStack.customModelData as CustomModelData
myIFluidStack.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
// IFluidStack.customName as Component
myIFluidStack.customName

Return Type: Component

Getter
Gets the data in the &lt;componenttype:minecraft:damage&gt;
script.zs
// IFluidStack.damage as int
myIFluidStack.damage

Return Type: int

Getter
script.zs
// IFluidStack.debugStickState as DebugStickState
myIFluidStack.debugStickState

Return Type: DebugStickState

Getter
script.zs
// IFluidStack.dyedColor as DyedItemColor
myIFluidStack.dyedColor

Return Type: DyedItemColor

Getter
Gets whether this fluid stack is empty.
script.zs
// IFluidStack.empty as bool
myIFluidStack.empty

Return Type: bool

static empty() as IFluidStack
Gets the empty IFluidStack

Returns: The empty IFluidStack

script.zs
// IFluidStack.empty() as IFluidStack;
IFluidStack.empty();

Return Type: IFluidStack

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
// IFluidStack.enchantmentGlintOverride as bool
myIFluidStack.enchantmentGlintOverride

Return Type: bool

Getter
Gets the data in &lt;componenttype:minecraft:enchantments&gt;
script.zs
// IFluidStack.enchantments as ItemEnchantments
myIFluidStack.enchantments

Return Type: ItemEnchantments

Getter
script.zs
// IFluidStack.entityData as CustomData
myIFluidStack.entityData

Return Type: CustomData

Getter
script.zs
// IFluidStack.fireworkExplosion as FireworkExplosion
myIFluidStack.fireworkExplosion

Return Type: FireworkExplosion

Getter
script.zs
// IFluidStack.fireworks as Fireworks
myIFluidStack.fireworks

Return Type: Fireworks

Getter
Retrieves this fluid stack's fluid.
script.zs
// IFluidStack.fluid as Fluid
myIFluidStack.fluid

Return Type: Fluid

implicit as Fluid
Retrieves this fluid stack's fluid.
script.zs
// IFluidStack as Fluid
myIFluidStack as Fluid

Return Type: Fluid

Getter
Gets the data in &lt;componenttype:minecraft:food&gt;
script.zs
// IFluidStack.food as FoodProperties
myIFluidStack.food

Return Type: FoodProperties

Getter
Checks whether the ComponentAccess has &lt;componenttype:minecraft:attribute_modifiers&gt;
script.zs
// IFluidStack.hasAttributeModifiers as bool
myIFluidStack.hasAttributeModifiers

Return Type: bool

Getter
script.zs
// IFluidStack.hasBannerPatterns as bool
myIFluidStack.hasBannerPatterns

Return Type: bool

Getter
script.zs
// IFluidStack.hasBaseColor as bool
myIFluidStack.hasBaseColor

Return Type: bool

Getter
script.zs
// IFluidStack.hasBees as bool
myIFluidStack.hasBees

Return Type: bool

Getter
script.zs
// IFluidStack.hasBlockEntityData as bool
myIFluidStack.hasBlockEntityData

Return Type: bool

Getter
script.zs
// IFluidStack.hasBlockState as bool
myIFluidStack.hasBlockState

Return Type: bool

Getter
script.zs
// IFluidStack.hasBucketEntityData as bool
myIFluidStack.hasBucketEntityData

Return Type: bool

Getter
script.zs
// IFluidStack.hasBundleContents as bool
myIFluidStack.hasBundleContents

Return Type: bool

Getter
Checks whether the ComponentAccess has &lt;componenttype:minecraft:can_break&gt;
script.zs
// IFluidStack.hasCanBreak as bool
myIFluidStack.hasCanBreak

Return Type: bool

Getter
Checks whether the ComponentAccess has &lt;componenttype:minecraft:can_place_on&gt;
script.zs
// IFluidStack.hasCanPlaceOn as bool
myIFluidStack.hasCanPlaceOn

Return Type: bool

Getter
script.zs
// IFluidStack.hasChargedProjectiles as bool
myIFluidStack.hasChargedProjectiles

Return Type: bool

Getter
script.zs
// IFluidStack.hasContainer as bool
myIFluidStack.hasContainer

Return Type: bool

Getter
script.zs
// IFluidStack.hasContainerLoot as bool
myIFluidStack.hasContainerLoot

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:custom_data&gt;
script.zs
// IFluidStack.hasCustomData as bool
myIFluidStack.hasCustomData

Return Type: bool

Getter
Checks whether the ComponentAccess has &lt;componenttype:minecraft:custom_model_data&gt;
script.zs
// IFluidStack.hasCustomModelData as bool
myIFluidStack.hasCustomModelData

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:custom_name&gt;
script.zs
// IFluidStack.hasCustomName as bool
myIFluidStack.hasCustomName

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:damage&gt;
script.zs
// IFluidStack.hasDamage as bool
myIFluidStack.hasDamage

Return Type: bool

Getter
script.zs
// IFluidStack.hasDebugStickState as bool
myIFluidStack.hasDebugStickState

Return Type: bool

Getter
script.zs
// IFluidStack.hasDyedColor as bool
myIFluidStack.hasDyedColor

Return Type: bool

Getter
Checks whether the ComponentAccess has &lt;componenttype:minecraft:enchantment_glint_override&gt;
script.zs
// IFluidStack.hasEnchantmentGlintOverride as bool
myIFluidStack.hasEnchantmentGlintOverride

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:enchantments&gt;
script.zs
// IFluidStack.hasEnchantments as bool
myIFluidStack.hasEnchantments

Return Type: bool

Getter
script.zs
// IFluidStack.hasEntityData as bool
myIFluidStack.hasEntityData

Return Type: bool

Getter
script.zs
// IFluidStack.hasFireworkExplosion as bool
myIFluidStack.hasFireworkExplosion

Return Type: bool

Getter
script.zs
// IFluidStack.hasFireworks as bool
myIFluidStack.hasFireworks

Return Type: bool

Getter
Checks whether the ComponentAccess has &lt;componenttype:minecraft:food&gt;
script.zs
// IFluidStack.hasFood as bool
myIFluidStack.hasFood

Return Type: bool

Getter
script.zs
// IFluidStack.hasInstrument as bool
myIFluidStack.hasInstrument

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:item_namegt;
script.zs
// IFluidStack.hasItemName as bool
myIFluidStack.hasItemName

Return Type: bool

Getter
script.zs
// IFluidStack.hasLock as bool
myIFluidStack.hasLock

Return Type: bool

Getter
script.zs
// IFluidStack.hasLodestoneTracker as bool
myIFluidStack.hasLodestoneTracker

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:lore&gt;
script.zs
// IFluidStack.hasLore as bool
myIFluidStack.hasLore

Return Type: bool

Getter
script.zs
// IFluidStack.hasMapColor as bool
myIFluidStack.hasMapColor

Return Type: bool

Getter
script.zs
// IFluidStack.hasMapDecorations as bool
myIFluidStack.hasMapDecorations

Return Type: bool

Getter
script.zs
// IFluidStack.hasMapId as bool
myIFluidStack.hasMapId

Return Type: bool

Getter
script.zs
// IFluidStack.hasMapPostProcessing as bool
myIFluidStack.hasMapPostProcessing

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:max_damage&gt;
script.zs
// IFluidStack.hasMaxDamage as bool
myIFluidStack.hasMaxDamage

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:max_stack_size&gt;
script.zs
// IFluidStack.hasMaxStackSize as bool
myIFluidStack.hasMaxStackSize

Return Type: bool

Getter
script.zs
// IFluidStack.hasNoteBlockSound as bool
myIFluidStack.hasNoteBlockSound

Return Type: bool

Getter
script.zs
// IFluidStack.hasOminousBottleAmplifier as bool
myIFluidStack.hasOminousBottleAmplifier

Return Type: bool

Getter
script.zs
// IFluidStack.hasPotDecorations as bool
myIFluidStack.hasPotDecorations

Return Type: bool

Getter
script.zs
// IFluidStack.hasPotionContents as bool
myIFluidStack.hasPotionContents

Return Type: bool

Getter
script.zs
// IFluidStack.hasProfile as bool
myIFluidStack.hasProfile

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:rarity&gt;
script.zs
// IFluidStack.hasRarity as bool
myIFluidStack.hasRarity

Return Type: bool

Getter
script.zs
// IFluidStack.hasRecipes as bool
myIFluidStack.hasRecipes

Return Type: bool

Getter
Checks whether the ComponentAccess has &lt;componenttype:minecraft:repair_cost&gt;
script.zs
// IFluidStack.hasRepairCost as bool
myIFluidStack.hasRepairCost

Return Type: bool

Getter
script.zs
// IFluidStack.hasStoredEnchantments as bool
myIFluidStack.hasStoredEnchantments

Return Type: bool

Getter
script.zs
// IFluidStack.hasSuspiciousStewEffects as bool
myIFluidStack.hasSuspiciousStewEffects

Return Type: bool

Getter
Checks whether the ComponentAccess has &lt;componenttype:minecraft:tool&gt;
script.zs
// IFluidStack.hasTool as bool
myIFluidStack.hasTool

Return Type: bool

Getter
script.zs
// IFluidStack.hasTrim as bool
myIFluidStack.hasTrim

Return Type: bool

Getter
Checks whether the ComponentAccess has the &lt;componenttype:minecraft:unbreakable&gt;
script.zs
// IFluidStack.hasUnbreakable as bool
myIFluidStack.hasUnbreakable

Return Type: bool

Getter
script.zs
// IFluidStack.hasWritableBookContent as bool
myIFluidStack.hasWritableBookContent

Return Type: bool

Getter
script.zs
// IFluidStack.hasWrittenBookContent as bool
myIFluidStack.hasWrittenBookContent

Return Type: bool

Getter
Gets the data in &lt;componenttype:minecraft:hide_additional_tooltip&gt;
script.zs
// IFluidStack.hideAdditionalTooltip as bool
myIFluidStack.hideAdditionalTooltip

Return Type: bool

Getter
Gets the data in &lt;componenttype:minecraft:hide_tooltip&gt;
script.zs
// IFluidStack.hideTooltip as bool
myIFluidStack.hideTooltip

Return Type: bool

Getter
script.zs
// IFluidStack.instrument as Instrument
myIFluidStack.instrument

Return Type: Instrument

Getter
Gets the data in &lt;componenttype:minecraft:fire_resistant&gt;
script.zs
// IFluidStack.isFireResistant as bool
myIFluidStack.isFireResistant

Return Type: bool

Getter
script.zs
// IFluidStack.isImmutable as bool
myIFluidStack.isImmutable

Return Type: bool

isImmutable() as bool
script.zs
// IFluidStack.isImmutable() as bool;
myIFluidStack.isImmutable();

Return Type: bool

Getter
Gets the data in &lt;componenttype:minecraft:intangible_projectile&gt;
script.zs
// IFluidStack.isIntangibleProjectile as bool
myIFluidStack.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
// IFluidStack.itemName as Component
myIFluidStack.itemName

Return Type: Component

Getter
script.zs
// IFluidStack.lockComponent as LockCode
myIFluidStack.lockComponent

Return Type: LockCode

Getter
script.zs
// IFluidStack.lodestoneTracker as LodestoneTracker
myIFluidStack.lodestoneTracker

Return Type: LodestoneTracker

Getter
Gets the data in the &lt;componenttype:minecraft:lore&gt;
script.zs
// IFluidStack.lore as ItemLore
myIFluidStack.lore

Return Type: ItemLore

Getter
script.zs
// IFluidStack.mapColor as MapItemColor
myIFluidStack.mapColor

Return Type: MapItemColor

Getter
script.zs
// IFluidStack.mapDecorations as MapDecorations
myIFluidStack.mapDecorations

Return Type: MapDecorations

Getter
script.zs
// IFluidStack.mapId as MapId
myIFluidStack.mapId

Return Type: MapId

Getter
script.zs
// IFluidStack.mapPostProcessing as MapPostProcessing
myIFluidStack.mapPostProcessing

Return Type: MapPostProcessing

matches(other as IFluidStack) as bool
Checks if this IFluidStack, matches the given IFluidStack by checking if the fluids are the same, and if this fluid's amount is bigger than the given fluid's amount

Returns: true if this fluid contains the other fluid

script.zs
// IFluidStack.matches(other as IFluidStack) as bool;
myIFluidStack.matches(myIFluidStack);

Parameters:

other Type: IFluidStack - other IFluidStack to compare against

Return Type: bool

Getter
Gets the data in the &lt;componenttype:minecraft:max_damage&gt;
script.zs
// IFluidStack.maxDamage as int
myIFluidStack.maxDamage

Return Type: int

Getter
Gets the data in the &lt;componenttype:minecraft:max_stack_size&gt;
script.zs
// IFluidStack.maxStackSize as int
myIFluidStack.maxStackSize

Return Type: int

Getter
script.zs
// IFluidStack.noteBlockSound as ResourceLocation
myIFluidStack.noteBlockSound

Return Type: ResourceLocation

Getter
script.zs
// IFluidStack.ominousBottleAmplifier as int
myIFluidStack.ominousBottleAmplifier

Return Type: int

Getter
script.zs
// IFluidStack.potDecorations as PotDecorations
myIFluidStack.potDecorations

Return Type: PotDecorations

Getter
script.zs
// IFluidStack.potionContents as PotionContents
myIFluidStack.potionContents

Return Type: PotionContents

Getter
script.zs
// IFluidStack.profile as ResolvableProfile
myIFluidStack.profile

Return Type: ResolvableProfile

Getter
Gets the data in the &lt;componenttype:minecraft:rarity&gt;
script.zs
// IFluidStack.rarity as Rarity
myIFluidStack.rarity

Return Type: Rarity

Getter
script.zs
// IFluidStack.recipes as List<ResourceLocation>
myIFluidStack.recipes

Return Type: List<ResourceLocation>

Getter
Gets the registry name for the fluid this stack is representing.
script.zs
// IFluidStack.registryName as ResourceLocation
myIFluidStack.registryName

Return Type: ResourceLocation

remove(type as DataComponentType<T>) as IFluidStack
script.zs
// IFluidStack.remove<T>(type as DataComponentType<T>) as IFluidStack;
myIFluidStack.remove<T>(myDataComponentType);

Parameters:

Return Type: IFluidStack

Getter
Gets the data in &lt;componenttype:minecraft:repair_cost&gt;
script.zs
// IFluidStack.repairCost as int
myIFluidStack.repairCost

Return Type: int

setAmount(amount as int) as IFluidStack
Sets the fluid amount in MilliBuckets (mB)

Returns: A new stack, or this stack, depending on if this stack is mutable

script.zs
// IFluidStack.setAmount(amount as int) as IFluidStack;
myIFluidStack.setAmount(1000);

Parameters:

amount Type: int - The amount to multiply this stack

Return Type: IFluidStack

Getter
script.zs
// IFluidStack.storedEnchantments as ItemEnchantments
myIFluidStack.storedEnchantments

Return Type: ItemEnchantments

Getter
script.zs
// IFluidStack.suspiciousStewEffects as SuspiciousStewEffects
myIFluidStack.suspiciousStewEffects

Return Type: SuspiciousStewEffects

Getter
Gets the data in &lt;componenttype:minecraft:tool&gt;
script.zs
// IFluidStack.tool as Tool
myIFluidStack.tool

Return Type: Tool

Getter
script.zs
// IFluidStack.trim as ArmorTrim
myIFluidStack.trim

Return Type: ArmorTrim

Getter
Gets the data in the &lt;componenttype:minecraft:unbreakable&gt;
script.zs
// IFluidStack.unbreakable as Unbreakable
myIFluidStack.unbreakable

Return Type: Unbreakable

update(type as DataComponentType<T>, defaultValue as T, data as U, operator as BiFunction<T, T, U>) as IFluidStack
script.zs
// IFluidStack.update<T, U>(type as DataComponentType<T>, defaultValue as T, data as U, operator as BiFunction<T, T, U>) as IFluidStack;
myIFluidStack.update<T, U>(myDataComponentType, myT, myU, myBiFunction);

Parameters:

defaultValue Type: T
data Type: U
operator Type: BiFunction<T, T, U>

Return Type: IFluidStack

update(type as DataComponentType<T>, defaultValue as T, operator as UnaryOperator<T>) as IFluidStack
script.zs
// IFluidStack.update<T>(type as DataComponentType<T>, defaultValue as T, operator as UnaryOperator<T>) as IFluidStack;
myIFluidStack.update<T>(myDataComponentType, myT, myUnaryOperator);

Parameters:

defaultValue Type: T
operator Type: UnaryOperator<T>

Return Type: IFluidStack

with(type as DataComponentType<T>, value as T?) as IFluidStack
script.zs
// IFluidStack.with<T>(type as DataComponentType<T>, value as T?) as IFluidStack;
myIFluidStack.with<T>(myDataComponentType, myT);

Parameters:

value Type: T?

Return Type: IFluidStack

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
// IFluidStack.withAttributeModifiers(modifiers as ItemAttributeModifiers) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withAttributeModifiers(modifier as ItemAttributeModifiersEntry, showInTooltip as bool = true) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withAttributeModifiers(modifiers as List<ItemAttributeModifiersEntry>, showInTooltip as bool = true) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withBannerPatterns(layers as List<BannerPatternLayersLayer>) as ComponentAccess;
myIFluidStack.withBannerPatterns(myList);

Parameters:

Return Type: ComponentAccess

withBannerPatterns(layers as BannerPatternLayers) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withBannerPatterns(layers as BannerPatternLayers) as ComponentAccess;
myIFluidStack.withBannerPatterns(myBannerPatternLayers);

Parameters:

Return Type: ComponentAccess

withBaseColor(color as DyeColor) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withBaseColor(color as DyeColor) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withBees(occupants as List<BeehiveBlockEntityOccupant>) as ComponentAccess;
myIFluidStack.withBees(myList);

Parameters:

Return Type: ComponentAccess

withBlockEntityData(data as MapData) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withBlockEntityData(data as MapData) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withBlockEntityData(data as CustomData) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withBlockState(properties as BlockItemStateProperties) as ComponentAccess;
myIFluidStack.withBlockState(myBlockItemStateProperties);

Parameters:

Return Type: ComponentAccess

withBucketEntityData(data as MapData) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withBucketEntityData(data as MapData) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withBucketEntityData(data as CustomData) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withBundleContents(contents as List<IItemStack>) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withBundleContents(contents as BundleContents) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withCanBreak(predicates as List<BlockPredicate>, showInTooltip as bool = true) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withCanBreak(predicate as AdventureModePredicate) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withCanPlaceOn(predicates as List<BlockPredicate>, showInTooltip as bool = true) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withCanPlaceOn(predicate as AdventureModePredicate) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withChargedProjectiles(item as IItemStack) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withChargedProjectiles(items as List<IItemStack>) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withChargedProjectiles(chargedProjectiles as ChargedProjectiles) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withContainer(contents as List<IItemStack>) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withContainer(contents as ItemContainerContents) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withContainerLoot(lootTable as ResourceKey<LootTable>, seed as long) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withContainerLoot(loot as SeededContainerLoot) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withCreativeSlotLock() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withCustomData(customData as MapData) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withCustomData(customData as CustomData) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withCustomModelData(value as int) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withCustomModelData(data as CustomModelData) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withCustomName(name as Component) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withDamage(damage as int) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withDebugStickState(state as DebugStickState) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withDyedColor(rgb as int, showInTooltip as bool = true) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withDyedColor(color as DyedItemColor) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withEnchantment(enchantment as Enchantment, level as int = 1) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withEnchantmentGlintOverride(value as bool) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withEnchantments(enchantments as ItemEnchantments) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withEntityData(data as MapData) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withEntityData(data as CustomData) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withFireResistant() as ComponentAccess;
myIFluidStack.withFireResistant();

Return Type: ComponentAccess

withFireworkExplosion(explosion as FireworkExplosion) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withFireworkExplosion(explosion as FireworkExplosion) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withFireworks(flightDuration as int, explosions as List<FireworkExplosion>) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withFireworks(fireworks as Fireworks) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withFood(food as FoodProperties) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withHideAdditionalTooltip() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withHideTooltip() as ComponentAccess;
myIFluidStack.withHideTooltip();

Return Type: ComponentAccess

withInstrument(instrument as Instrument) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withInstrument(instrument as Instrument) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withIntangibleProjectile() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withItemName(name as Component) as ComponentAccess;
myIFluidStack.withItemName(Component.literal("Fancy Water"));

Parameters:

name Type: Component

Return Type: ComponentAccess

withJsonComponent(type as DataComponentType<T>, value as IData) as IFluidStack
script.zs
// IFluidStack.withJsonComponent(type as DataComponentType<T>, value as IData) as IFluidStack;
myIFluidStack.withJsonComponent(myDataComponentType, myIData);

Parameters:

value Type: IData

Return Type: IFluidStack

withJsonComponents(value as IData) as IFluidStack
script.zs
// IFluidStack.withJsonComponents(value as IData) as IFluidStack;
myIFluidStack.withJsonComponents(myIData);

Parameters:

value Type: IData

Return Type: IFluidStack

withLock(code as string) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withLock(code as string) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withLock(lock as LockCode) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withLodestoneTracker(tracker as LodestoneTracker) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withLore(components as List<Component>) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withLore(lore as ItemLore) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withMapColor(rgb as int) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withMapColor(color as MapItemColor) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withMapDecorations(decorations as MapDecorationsEntry[string]) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withMapDecorations(decorations as MapDecorations) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withMapId(id as int) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withMapId(mapId as MapId) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withMapPostProcessing(value as MapPostProcessing) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withMaxDamage(maxDamage as int) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withMaxStackSize(maxStackSize as int) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withNoteBlockSound(sound as ResourceLocation) as ComponentAccess;
myIFluidStack.withNoteBlockSound(myResourceLocation);

Parameters:

Return Type: ComponentAccess

withOminousBottleAmplifier(amplifier as int) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withOminousBottleAmplifier(amplifier as int) as ComponentAccess;
myIFluidStack.withOminousBottleAmplifier(myInt);

Parameters:

amplifier Type: int

Return Type: ComponentAccess

without(type as DataComponentType<T>) as IFluidStack
script.zs
// IFluidStack.without<T>(type as DataComponentType<T>) as IFluidStack;
myIFluidStack.without<T>(myDataComponentType);

Parameters:

Return Type: IFluidStack

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

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutAttributeModifiers() as ComponentAccess;
myIFluidStack.withoutAttributeModifiers();

Return Type: ComponentAccess

withoutBannerPatterns() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutBannerPatterns() as ComponentAccess;
myIFluidStack.withoutBannerPatterns();

Return Type: ComponentAccess

withoutBaseColor() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutBaseColor() as ComponentAccess;
myIFluidStack.withoutBaseColor();

Return Type: ComponentAccess

withoutBees() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutBees() as ComponentAccess;
myIFluidStack.withoutBees();

Return Type: ComponentAccess

withoutBlockEntityData() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutBlockEntityData() as ComponentAccess;
myIFluidStack.withoutBlockEntityData();

Return Type: ComponentAccess

withoutBlockState() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutBlockState() as ComponentAccess;
myIFluidStack.withoutBlockState();

Return Type: ComponentAccess

withoutBucketEntityData() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutBucketEntityData() as ComponentAccess;
myIFluidStack.withoutBucketEntityData();

Return Type: ComponentAccess

withoutBundleContents() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutBundleContents() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutCanBreak() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutCanPlaceOn() as ComponentAccess;
myIFluidStack.withoutCanPlaceOn();

Return Type: ComponentAccess

withoutChargedProjectiles() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutChargedProjectiles() as ComponentAccess;
myIFluidStack.withoutChargedProjectiles();

Return Type: ComponentAccess

withoutContainer() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutContainer() as ComponentAccess;
myIFluidStack.withoutContainer();

Return Type: ComponentAccess

withoutContainerLoot() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutContainerLoot() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutCreativeSlotLock() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutCustomData() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutCustomModelData() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutCustomName() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutDamage() as ComponentAccess;
myIFluidStack.withoutDamage();

Return Type: ComponentAccess

withoutDebugStickState() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutDebugStickState() as ComponentAccess;
myIFluidStack.withoutDebugStickState();

Return Type: ComponentAccess

withoutDyedColor() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutDyedColor() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutEnchantment(enchantment as Enchantment) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutEnchantmentGlintOverride() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutEnchantments() as ComponentAccess;
myIFluidStack.withoutEnchantments();

Return Type: ComponentAccess

withoutEntityDate() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutEntityDate() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutFireResistant() as ComponentAccess;
myIFluidStack.withoutFireResistant();

Return Type: ComponentAccess

withoutFireworkExplosion() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutFireworkExplosion() as ComponentAccess;
myIFluidStack.withoutFireworkExplosion();

Return Type: ComponentAccess

withoutFireworks() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutFireworks() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutFood() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutHideAdditionalTooltip() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutHideTooltip() as ComponentAccess;
myIFluidStack.withoutHideTooltip();

Return Type: ComponentAccess

withoutInstrument() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutInstrument() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutIntangibleProjectile() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutItemName() as ComponentAccess;
myIFluidStack.withoutItemName();

Return Type: ComponentAccess

withoutLock() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutLock() as ComponentAccess;
myIFluidStack.withoutLock();

Return Type: ComponentAccess

withoutLodestoneTracker() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutLodestoneTracker() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutLore() as ComponentAccess;
myIFluidStack.withoutLore();

Return Type: ComponentAccess

withoutMapColor() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutMapColor() as ComponentAccess;
myIFluidStack.withoutMapColor();

Return Type: ComponentAccess

withoutMapDecorations() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutMapDecorations() as ComponentAccess;
myIFluidStack.withoutMapDecorations();

Return Type: ComponentAccess

withoutMapId() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutMapId() as ComponentAccess;
myIFluidStack.withoutMapId();

Return Type: ComponentAccess

withoutMapPostProcessing() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutMapPostProcessing() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutMaxDamage() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutMaxStackSize() as ComponentAccess;
myIFluidStack.withoutMaxStackSize();

Return Type: ComponentAccess

withoutNoteBlockSound() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutNoteBlockSound() as ComponentAccess;
myIFluidStack.withoutNoteBlockSound();

Return Type: ComponentAccess

withoutOminousBottleAmplifier() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutOminousBottleAmplifier() as ComponentAccess;
myIFluidStack.withoutOminousBottleAmplifier();

Return Type: ComponentAccess

withoutPotDecorations() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutPotDecorations() as ComponentAccess;
myIFluidStack.withoutPotDecorations();

Return Type: ComponentAccess

withoutPotionContents() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutPotionContents() as ComponentAccess;
myIFluidStack.withoutPotionContents();

Return Type: ComponentAccess

withoutProfile() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutProfile() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutRarity() as ComponentAccess;
myIFluidStack.withoutRarity();

Return Type: ComponentAccess

withoutRecipes() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutRecipes() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutRepairCost() as ComponentAccess;
myIFluidStack.withoutRepairCost();

Return Type: ComponentAccess

withoutStoredEnchantments() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutStoredEnchantments() as ComponentAccess;
myIFluidStack.withoutStoredEnchantments();

Return Type: ComponentAccess

withoutSuspiciousStewEffects() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutSuspiciousStewEffects() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutTool() as ComponentAccess;
myIFluidStack.withoutTool();

Return Type: ComponentAccess

withoutTrim() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutTrim() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withoutUnbreakable() as ComponentAccess;
myIFluidStack.withoutUnbreakable();

Return Type: ComponentAccess

withoutWritableBookContent() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutWritableBookContent() as ComponentAccess;
myIFluidStack.withoutWritableBookContent();

Return Type: ComponentAccess

withoutWrittenBookContent() as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withoutWrittenBookContent() as ComponentAccess;
myIFluidStack.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
// IFluidStack.withPotDecorations(back as ItemDefinition, left as ItemDefinition, right as ItemDefinition, front as ItemDefinition) as ComponentAccess;
myIFluidStack.withPotDecorations(myItem, myItem, myItem, myItem);

Return Type: ComponentAccess

withPotDecorations(decorations as PotDecorations) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withPotDecorations(decorations as PotDecorations) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withPotionContents(potion as Potion) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withPotionContents(potion as Potion, customEffects as List<MobEffectInstance>) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withPotionContents(potion as Potion, customColor as int, customEffects as List<MobEffectInstance>) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withPotionContents(contents as PotionContents) as ComponentAccess;
myIFluidStack.withPotionContents(myPotionContents);

Parameters:

contents Type: PotionContents

Return Type: ComponentAccess

withProfile(profile as ResolvableProfile) as ComponentAccess
script.zs
// IFluidStack.withProfile(profile as ResolvableProfile) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withRarity(rarity as Rarity) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withRecipes(recipes as List<ResourceLocation>) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withRepairCost(cost as int) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withStoredEnchantments(enchantments as ItemEnchantments) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withSuspiciousStewEffects(effects as List<SuspiciousStewEffectsEntry>) as ComponentAccess;
myIFluidStack.withSuspiciousStewEffects(myList);

Parameters:

Return Type: ComponentAccess

withSuspiciousStewEffects(suspiciousStewEffects as SuspiciousStewEffects) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withSuspiciousStewEffects(suspiciousStewEffects as SuspiciousStewEffects) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withTool(rules as List<ToolRule>, defaultMiningSpeed as float, damagePerBlock as int) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withTool(tool as Tool) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withTrim(trim as ArmorTrim) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withUnbreakable(showInTooltip as bool = true) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withUnbreakable(unbreakable as Unbreakable) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withWritableBookContent(pages as List<Filterable<string>>) as ComponentAccess;
myIFluidStack.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
// IFluidStack.withWritableBookContent(content as WritableBookContent) as ComponentAccess;
myIFluidStack.withWritableBookContent(myWritableBookContent);

Parameters:

Return Type: ComponentAccess

withWrittenBookContent(content as WrittenBookContent) as ComponentAccess

Returns: The new instance with the modified data.

script.zs
// IFluidStack.withWrittenBookContent(content as WrittenBookContent) as ComponentAccess;
myIFluidStack.withWrittenBookContent(myWrittenBookContent);

Parameters:

Return Type: ComponentAccess

Getter
script.zs
// IFluidStack.writableBookContent as WritableBookContent
myIFluidStack.writableBookContent

Return Type: WritableBookContent

Getter
script.zs
// IFluidStack.writtenBookContent as WrittenBookContent
myIFluidStack.writtenBookContent

Return Type: WrittenBookContent