Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.fluid.IFluidStack;

Implemented Interfaces

Link to implemented-interfaces

IFluidStack implements the following interfaces. That means all methods defined in these interfaces are also available in IFluidStack

Name: empty

Gets the empty IFluidStack

Returns: The empty IFluidStack
Return Type: IFluidStack

ZenScript
Copy
// IFluidStack.empty() as IFluidStack

IFluidStack.empty();
Result TypeIs Implicit
Result Type
Fluid
Is Implicit
true
Result Type
FluidIngredient
Is Implicit
true
Result Type
IData
Is Implicit
true

Name: applyComponents

Return Type: IFluidStack

ZenScript
Copy
IFluidStack.applyComponents(map as DataComponentMap) as IFluidStack
ParameterType
Parameter
map
Type
DataComponentMap

Name: applyComponents

Return Type: IFluidStack

ZenScript
Copy
IFluidStack.applyComponents(patch as DataComponentPatch) as IFluidStack
ParameterType
Parameter
patch
Type
DataComponentPatch

Name: asIData

Return Type: IData

ZenScript
Copy
// IFluidStack.asIData() as IData

myIFluidStack.asIData();

Name: asImmutable

Return Type: IFluidStack

ZenScript
Copy
// IFluidStack.asImmutable() as IFluidStack

myIFluidStack.asImmutable();

Name: asMutable

Makes this stack mutable

Returns: A new Stack, that is mutable.
Return Type: IFluidStack

ZenScript
Copy
// IFluidStack.asMutable() as IFluidStack

myIFluidStack.asMutable();

Name: copy

Copies the stack. Only needed when mutable stacks are involved.

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

ZenScript
Copy
// IFluidStack.copy() as IFluidStack

myIFluidStack.copy();

Name: isImmutable

Return Type: boolean

ZenScript
Copy
// IFluidStack.isImmutable() as boolean

myIFluidStack.isImmutable();

Name: matches

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
Return Type: boolean

ZenScript
Copy
IFluidStack.matches(other as IFluidStack) as boolean
ParameterTypeDescription
Parameter
other
Type
IFluidStack
Description
other IFluidStack to compare against

Name: remove

Return Type: IFluidStack

ZenScript
Copy
IFluidStack.remove<T : Object>(type as DataComponentType<T>) as IFluidStack
ParameterType
Parameter
type
Type
DataComponentType<T>
Parameter
T
Type
Object

Name: setAmount

Sets the fluid amount in MilliBuckets (mB)

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

ZenScript
Copy
// IFluidStack.setAmount(amount as int) as IFluidStack

myIFluidStack.setAmount(1000);
ParameterTypeDescription
Parameter
amount
Type
int
Description
The amount to multiply this stack

Name: update

Return Type: IFluidStack

ZenScript
Copy
IFluidStack.update<T : Object>(type as DataComponentType<T>, defaultValue as T, operator as UnaryOperator<T>) as IFluidStack
ParameterType
Parameter
type
Type
DataComponentType<T>
Parameter
defaultValue
Type
T
Parameter
operator
Type
UnaryOperator<T>
Parameter
T
Type
Object

Name: update

Return Type: IFluidStack

ZenScript
Copy
IFluidStack.update<T : Object, U : Object>(type as DataComponentType<T>, defaultValue as T, data as U, operator as BiFunction<T,U,T>) as IFluidStack
ParameterType
Parameter
type
Type
DataComponentType<T>
Parameter
defaultValue
Type
T
Parameter
data
Type
U
Parameter
operator
Type
BiFunction<T,U,T>
Parameter
T
Type
Object
Parameter
U
Type
Object

Name: with

Return Type: IFluidStack

ZenScript
Copy
IFluidStack.with<T : Object>(type as DataComponentType<T>, value as @org.openzen.zencode.java.ZenCodeType.Nullable T) as IFluidStack
ParameterType
Parameter
type
Type
DataComponentType<T>
Parameter
value
Type
@org.openzen.zencode.java.ZenCodeType.Nullable T
Parameter
T
Type
Object

Link to withAttributeModifiers

Name: withAttributeModifiers

Sets the <componenttype:minecraft:attribute_modifiers> of the ComponentAccess to have the given ItemAttributeModifiers

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withAttributeModifiers(modifiers as ItemAttributeModifiers) as T

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(););
ParameterTypeDescription
Parameter
modifiers
Type
ItemAttributeModifiers
Description
The attributes to give to the item.

Link to withAttributeModifiers

Name: withAttributeModifiers

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withAttributeModifiers(modifier as ItemAttributeModifiersEntry, showInTooltip as boolean) as T
ParameterTypeOptionalDefault Value
Parameter
modifier
Type
ItemAttributeModifiersEntry
Optional
false
Default Value
​
Parameter
showInTooltip
Type
boolean
Optional
true
Default Value
true

Link to withAttributeModifiers

Name: withAttributeModifiers

Return Type: T

ZenScript
Copy
IFluidStack.withAttributeModifiers(modifiers as stdlib.List<ItemAttributeModifiersEntry>, showInTooltip as boolean) as T
ParameterTypeOptionalDefault Value
Parameter
modifiers
Type
stdlib.List<ItemAttributeModifiersEntry>
Optional
false
Default Value
​
Parameter
showInTooltip
Type
boolean
Optional
true
Default Value
true

Link to withBannerPatterns

Name: withBannerPatterns

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withBannerPatterns(layers as BannerPatternLayers) as T
ParameterType
Parameter
layers
Type
BannerPatternLayers

Link to withBannerPatterns

Name: withBannerPatterns

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withBannerPatterns(layers as stdlib.List<BannerPatternLayersLayer>) as T
ParameterType
Parameter
layers
Type
stdlib.List<BannerPatternLayersLayer>

Name: withBaseColor

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withBaseColor(color as invalid) as T
ParameterType
Parameter
color
Type
invalid

Name: withBees

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withBees(occupants as stdlib.List<BeehiveBlockEntityOccupant>) as T
ParameterType
Parameter
occupants
Type
stdlib.List<BeehiveBlockEntityOccupant>

Link to withBlockEntityData

Name: withBlockEntityData

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withBlockEntityData(data as CustomData) as T
ParameterType
Parameter
data
Type
CustomData

Link to withBlockEntityData

Name: withBlockEntityData

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withBlockEntityData(data as MapData) as T
ParameterType
Parameter
data
Type
MapData

Name: withBlockState

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withBlockState(properties as BlockItemStateProperties) as T
ParameterType
Parameter
properties
Type
BlockItemStateProperties

Link to withBucketEntityData

Name: withBucketEntityData

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withBucketEntityData(data as CustomData) as T
ParameterType
Parameter
data
Type
CustomData

Link to withBucketEntityData

Name: withBucketEntityData

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withBucketEntityData(data as MapData) as T
ParameterType
Parameter
data
Type
MapData

Link to withBundleContents

Name: withBundleContents

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withBundleContents(contents as BundleContents) as T
ParameterType
Parameter
contents
Type
BundleContents

Link to withBundleContents

Name: withBundleContents

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withBundleContents(contents as stdlib.List<IItemStack>) as T
ParameterType
Parameter
contents
Type
stdlib.List<IItemStack>

Name: withCanBreak

Sets the <componenttype:minecraft:can_break> of the ComponentAccess to have the given invalid

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withCanBreak(predicate as invalid) as T
ParameterTypeDescription
Parameter
predicate
Type
invalid
Description
The adventure mode predicate to use to determine whether the item can be used to break a block.

Name: withCanBreak

Sets the <componenttype:minecraft:can_break> with the given BlockPredicates.

Any predicate that matches will allow the Block to be broken by this ItemStack.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withCanBreak(predicates as stdlib.List<BlockPredicate>, showInTooltip as boolean) as T

myIFluidStack.withCanBreak(BlockPredicate.create().of(<block:minecraft:diamond_ore>).build(), true);
ParameterTypeDescriptionOptionalDefault Value
Parameter
predicates
Type
stdlib.List<BlockPredicate>
Description
The collection of predicates to test for
Optional
false
Default Value
​
Parameter
showInTooltip
Type
boolean
Description
Whether to show the ability in the tooltip or not.
Optional
true
Default Value
true

Name: withCanPlaceOn

Sets the <componenttype:minecraft:can_place_on> of the ComponentAccess to have the given invalid

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withCanPlaceOn(predicate as invalid) as T
ParameterTypeDescription
Parameter
predicate
Type
invalid
Description
The adventure mode predicate to use to determine whether the current block can be placed on another block.

Name: withCanPlaceOn

Sets the <componenttype:minecraft:can_place_on> with the given BlockPredicates.

Any predicate that matches will allow the BlockItem within the ItemStack to be placed.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withCanPlaceOn(predicates as stdlib.List<BlockPredicate>, showInTooltip as boolean) as T
ParameterTypeDescriptionOptionalDefault Value
Parameter
predicates
Type
stdlib.List<BlockPredicate>
Description
The collection of predicates to test for
Optional
false
Default Value
​
Parameter
showInTooltip
Type
boolean
Description
Whether to show the restriction in the tooltip or not.
Optional
true
Default Value
true

Link to withChargedProjectiles

Name: withChargedProjectiles

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withChargedProjectiles(chargedProjectiles as ChargedProjectiles) as T
ParameterType
Parameter
chargedProjectiles
Type
ChargedProjectiles

Link to withChargedProjectiles

Name: withChargedProjectiles

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withChargedProjectiles(item as IItemStack) as T
ParameterType
Parameter
item
Type
IItemStack

Link to withChargedProjectiles

Name: withChargedProjectiles

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withChargedProjectiles(items as stdlib.List<IItemStack>) as T
ParameterType
Parameter
items
Type
stdlib.List<IItemStack>

Name: withContainer

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withContainer(contents as ItemContainerContents) as T
ParameterType
Parameter
contents
Type
ItemContainerContents

Name: withContainer

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withContainer(contents as stdlib.List<IItemStack>) as T
ParameterType
Parameter
contents
Type
stdlib.List<IItemStack>

Link to withContainerLoot

Name: withContainerLoot

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withContainerLoot(loot as SeededContainerLoot) as T
ParameterType
Parameter
loot
Type
SeededContainerLoot

Link to withContainerLoot

Name: withContainerLoot

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withContainerLoot(lootTable as ResourceKey<LootTable>, seed as long) as T
ParameterType
Parameter
lootTable
Type
ResourceKey<LootTable>
Parameter
seed
Type
long

Link to withCreativeSlotLock

Name: withCreativeSlotLock

Sets the <componenttype:minecraft:creative_slot_lock> of the ComponentAccess to exist.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withCreativeSlotLock() as T

myIFluidStack.withCreativeSlotLock();

Name: withCustomData

Sets the <componenttype:minecraft:custom_data> of the ComponentAccess to have the given CustomData

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withCustomData(customData as CustomData) as T
ParameterType
Parameter
customData
Type
CustomData

Name: withCustomData

Sets the componenttype:minecraft:custom_data of the ComponentAccess to have the given MapData

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withCustomData(customData as MapData) as T

myIFluidStack.withCustomData({custom_ammo_thing: 1, owner: "Benji"});
ParameterTypeDescription
Parameter
customData
Type
MapData
Description
The MapData to set the component to.

Link to withCustomModelData

Name: withCustomModelData

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withCustomModelData(data as CustomModelData) as T
ParameterType
Parameter
data
Type
CustomModelData

Link to withCustomModelData

Name: withCustomModelData

Sets the <componenttype:minecraft:custom_data> of the ComponentAccess to have the given CustomData

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withCustomModelData(value as int) as T

myIFluidStack.withCustomModelData(2);
ParameterTypeDescription
Parameter
value
Type
int
Description
The value to set the CustomModelData to

Name: withCustomName

Sets the <componenttype:minecraft:custom_name> of the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withCustomName(name as Component) as T

myIFluidStack.withCustomName(Component.literal("Fancy Water"));
myIFluidStack.withCustomName(Component.translatable("mypack.lore.fancy_water"));
ParameterTypeDescription
Parameter
name
Type
Component
Description
The component to use.

Name: withDamage

Sets the <componenttype:minecraft:damage> of the ComponentAccess to have the given value. Damage is related to durability.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withDamage(damage as int) as T

myIFluidStack.withDamage(16);
ParameterTypeDescription
Parameter
damage
Type
int
Description
The new damage of the ComponentAccess.

Link to withDebugStickState

Name: withDebugStickState

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withDebugStickState(state as DebugStickState) as T
ParameterType
Parameter
state
Type
DebugStickState

Name: withDyedColor

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withDyedColor(color as DyedItemColor) as T
ParameterType
Parameter
color
Type
DyedItemColor

Name: withDyedColor

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withDyedColor(rgb as int, showInTooltip as boolean) as T
ParameterTypeOptionalDefault Value
Parameter
rgb
Type
int
Optional
false
Default Value
​
Parameter
showInTooltip
Type
boolean
Optional
true
Default Value
true

Name: withEnchantment

Sets the <componenttype:minecraft:enchantments> of the ComponentAccess to have the given Enchantment and level.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withEnchantment(enchantment as Enchantment, level as int) as T

myIFluidStack.withEnchantment(<enchantment:minecraft:efficiency>, 4);
ParameterTypeDescriptionOptionalDefault Value
Parameter
enchantment
Type
Enchantment
Description
The enchantment to add
Optional
false
Default Value
​
Parameter
level
Type
int
Description
The level of the enchantment to set
Optional
true
Default Value
1

Link to withEnchantmentGlintOverride

Name: withEnchantmentGlintOverride

Sets the <componenttype:minecraft:enchantment_glint_override> of the ComponentAccess to have the given value.

If it is false, the item will never render the enchantment glint If it is true, the item will render the enchantment glint always, indenpendently of whether it is enchanted or not.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withEnchantmentGlintOverride(value as boolean) as T

myIFluidStack.withEnchantmentGlintOverride(true);
ParameterTypeDescription
Parameter
value
Type
boolean
Description
The value of the override, as described above

Link to withEnchantments

Name: withEnchantments

Sets the <componenttype:minecraft:enchantments> of the ComponentAccess to have the given ItemEnchantments

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withEnchantments(enchantments as ItemEnchantments) as T
ParameterType
Parameter
enchantments
Type
ItemEnchantments

Name: withEntityData

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withEntityData(data as CustomData) as T
ParameterType
Parameter
data
Type
CustomData

Name: withEntityData

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withEntityData(data as MapData) as T
ParameterType
Parameter
data
Type
MapData

Link to withFireResistant

Name: withFireResistant

Sets the <componenttype:minecraft:fire_resistant> of the ComponentAccess to exist.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withFireResistant() as T

myIFluidStack.withFireResistant();

Link to withFireworkExplosion

Name: withFireworkExplosion

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withFireworkExplosion(explosion as FireworkExplosion) as T
ParameterType
Parameter
explosion
Type
FireworkExplosion

Name: withFireworks

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withFireworks(fireworks as Fireworks) as T
ParameterType
Parameter
fireworks
Type
Fireworks

Name: withFireworks

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withFireworks(flightDuration as int, explosions as stdlib.List<FireworkExplosion>) as T
ParameterType
Parameter
flightDuration
Type
int
Parameter
explosions
Type
stdlib.List<FireworkExplosion>

Name: withFood

Sets the <componenttype:minecraft:food> of the ComponentAccess to have the given FoodProperties

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withFood(food as FoodProperties) as T
ParameterType
Parameter
food
Type
FoodProperties

Link to withHideAdditionalTooltip

Name: withHideAdditionalTooltip

Sets the <componenttype:minecraft:hide_additional_tooltip> of the ComponentAccess to exist.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withHideAdditionalTooltip() as T

myIFluidStack.withHideAdditionalTooltip();

Name: withHideTooltip

Sets the <componenttype:minecraft:hide_tooltip> of the ComponentAccess to exist.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withHideTooltip() as T

myIFluidStack.withHideTooltip();

Name: withInstrument

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withInstrument(instrument as Instrument) as T
ParameterType
Parameter
instrument
Type
Instrument

Link to withIntangibleProjectile

Name: withIntangibleProjectile

Sets the <componenttype:minecraft:intangible_projectile> of the ComponentAccess to have exist.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withIntangibleProjectile() as T

myIFluidStack.withIntangibleProjectile();

Name: withItemName

Sets the <componenttype:minecraft:item_name> of the ComponentAccess to have the given Component

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withItemName(name as Component) as T

myIFluidStack.withItemName(Component.literal("Fancy Water"));
myIFluidStack.withItemName(Component.translatable("mypack.lore.fancy_water"));
ParameterType
Parameter
name
Type
Component

Link to withJsonComponent

Name: withJsonComponent

Return Type: IFluidStack

ZenScript
Copy
IFluidStack.withJsonComponent(type as DataComponentType, value as IData?) as IFluidStack
ParameterType
Parameter
type
Type
DataComponentType
Parameter
value
Type
IData?

Link to withJsonComponents

Name: withJsonComponents

Return Type: IFluidStack

ZenScript
Copy
IFluidStack.withJsonComponents(value as IData) as IFluidStack
ParameterType
Parameter
value
Type
IData

Name: withLock

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withLock(code as string) as T
ParameterType
Parameter
code
Type
string

Name: withLock

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withLock(lock as invalid) as T
ParameterType
Parameter
lock
Type
invalid

Link to withLodestoneTracker

Name: withLodestoneTracker

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withLodestoneTracker(tracker as LodestoneTracker) as T
ParameterType
Parameter
tracker
Type
LodestoneTracker

Name: withLore

Sets the <componenttype:minecraft:lore> of the ComponentAccess to have the given stdlib.List<Component>

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withLore(components as stdlib.List<Component>) as T

myIFluidStack.withLore([Component.literal("Found in a dark cave"), Component.translatable("Belonged to a Dragon")]);
ParameterTypeDescription
Parameter
components
Type
stdlib.List<Component>
Description
The list of Components to add as lore.

Name: withLore

Sets the <componenttype:minecraft:lore> of the ComponentAccess to have the given ItemLore

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withLore(lore as ItemLore) as T
ParameterType
Parameter
lore
Type
ItemLore

Name: withMapColor

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withMapColor(color as MapItemColor) as T
ParameterType
Parameter
color
Type
MapItemColor

Name: withMapColor

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withMapColor(rgb as int) as T
ParameterType
Parameter
rgb
Type
int

Link to withMapDecorations

Name: withMapDecorations

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withMapDecorations(decorations as MapDecorations) as T
ParameterType
Parameter
decorations
Type
MapDecorations

Link to withMapDecorations

Name: withMapDecorations

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withMapDecorations(decorations as MapDecorationsEntry[string]) as T
ParameterType
Parameter
decorations
Type
MapDecorationsEntry[string]

Name: withMapId

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withMapId(id as int) as T
ParameterType
Parameter
id
Type
int

Name: withMapId

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withMapId(mapId as invalid) as T
ParameterType
Parameter
mapId
Type
invalid

Link to withMapPostProcessing

Name: withMapPostProcessing

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withMapPostProcessing(value as MapPostProcessing) as T
ParameterType
Parameter
value
Type
MapPostProcessing

Name: withMaxDamage

Sets the <componenttype:minecraft:max_damage> of the ComponentAccess to have the given value.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withMaxDamage(maxDamage as int) as T

myIFluidStack.withMaxDamage(1024);
ParameterType
Parameter
maxDamage
Type
int

Link to withMaxStackSize

Name: withMaxStackSize

Sets the <componenttype:minecraft:stack_size> of the ComponentAccess to have the given value. Non standard stack sizes may render differently and may not be handled correctly by all mods. Test your changes!

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withMaxStackSize(maxStackSize as int) as T

myIFluidStack.withMaxStackSize(16);
ParameterTypeDescription
Parameter
maxStackSize
Type
int
Description
The new maxStackSize of the ComponentAccess.

Link to withNoteBlockSound

Name: withNoteBlockSound

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withNoteBlockSound(sound as ResourceLocation) as T
ParameterType
Parameter
sound
Type
ResourceLocation

Link to withOminousBottleAmplifier

Name: withOminousBottleAmplifier

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withOminousBottleAmplifier(amplifier as int) as T
ParameterType
Parameter
amplifier
Type
int

Link to withPotDecorations

Name: withPotDecorations

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withPotDecorations(decorations as PotDecorations) as T
ParameterType
Parameter
decorations
Type
PotDecorations

Link to withPotDecorations

Name: withPotDecorations

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withPotDecorations(back as ItemDefinition, left as ItemDefinition, right as ItemDefinition, front as ItemDefinition) as T
ParameterType
Parameter
back
Type
ItemDefinition
Parameter
left
Type
ItemDefinition
Parameter
right
Type
ItemDefinition
Parameter
front
Type
ItemDefinition

Link to withPotionContents

Name: withPotionContents

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withPotionContents(contents as invalid) as T
ParameterType
Parameter
contents
Type
invalid

Link to withPotionContents

Name: withPotionContents

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withPotionContents(potion as Potion) as T
ParameterType
Parameter
potion
Type
Potion

Link to withPotionContents

Name: withPotionContents

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withPotionContents(potion as Potion, customEffects as stdlib.List<MobEffectInstance>) as T
ParameterType
Parameter
potion
Type
Potion
Parameter
customEffects
Type
stdlib.List<MobEffectInstance>

Link to withPotionContents

Name: withPotionContents

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withPotionContents(potion as Potion, customColor as int, customEffects as stdlib.List<MobEffectInstance>) as T
ParameterType
Parameter
potion
Type
Potion
Parameter
customColor
Type
int
Parameter
customEffects
Type
stdlib.List<MobEffectInstance>

Name: withProfile

Return Type: T

ZenScript
Copy
IFluidStack.withProfile(profile as ResolvableProfile) as T
ParameterType
Parameter
profile
Type
ResolvableProfile

Name: withRarity

Sets the <componenttype:minecraft:rarity> of the ComponentAccess to have the given Rarity

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withRarity(rarity as Rarity) as T

myIFluidStack.withRarity(<constant:minecraft:item/rarity:epic>);
ParameterTypeDescription
Parameter
rarity
Type
Rarity
Description
The rarity to set

Name: withRecipes

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withRecipes(recipes as stdlib.List<ResourceLocation>) as T
ParameterType
Parameter
recipes
Type
stdlib.List<ResourceLocation>

Name: withRepairCost

Sets the <componenttype:minecraft:repair_cost> of the ComponentAccess to have the given value.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withRepairCost(cost as int) as T

myIFluidStack.withRepairCost(20);
ParameterTypeDescription
Parameter
cost
Type
int
Description
The repair cost

Link to withStoredEnchantments

Name: withStoredEnchantments

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withStoredEnchantments(enchantments as ItemEnchantments) as T
ParameterType
Parameter
enchantments
Type
ItemEnchantments

Link to withSuspiciousStewEffects

Name: withSuspiciousStewEffects

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withSuspiciousStewEffects(effects as stdlib.List<SuspiciousStewEffectsEntry>) as T
ParameterType
Parameter
effects
Type
stdlib.List<SuspiciousStewEffectsEntry>

Link to withSuspiciousStewEffects

Name: withSuspiciousStewEffects

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withSuspiciousStewEffects(suspiciousStewEffects as SuspiciousStewEffects) as T
ParameterType
Parameter
suspiciousStewEffects
Type
SuspiciousStewEffects

Name: withTool

Sets the <componenttype:minecraft:tool> of the ComponentAccess to have the given Tool

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withTool(tool as Tool) as T
ParameterType
Parameter
tool
Type
Tool

Name: withTool

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withTool(rules as stdlib.List<ToolRule>, defaultMiningSpeed as float, damagePerBlock as int) as T
ParameterType
Parameter
rules
Type
stdlib.List<ToolRule>
Parameter
defaultMiningSpeed
Type
float
Parameter
damagePerBlock
Type
int

Name: withTrim

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withTrim(trim as ArmorTrim) as T
ParameterType
Parameter
trim
Type
ArmorTrim

Name: withUnbreakable

Sets the <componenttype:minecraft:unbreakable> of the ComponentAccess. The existance of the component makes the ComponentAccess unbreakable.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withUnbreakable(showInTooltip as boolean) as T
ParameterTypeDescriptionOptionalDefault Value
Parameter
showInTooltip
Type
boolean
Description
Whether to show that the ComponentAccess is unbreakable in a tooltip.
Optional
true
Default Value
true

Name: withUnbreakable

Sets the <componenttype:minecraft:unbreakable> of the ComponentAccess. The existance of the component makes the ComponentAccess unbreakable.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withUnbreakable(unbreakable as Unbreakable) as T
ParameterTypeDescription
Parameter
unbreakable
Type
Unbreakable
Description
The Unbreakable instance with the configured values.

Link to withWritableBookContent

Name: withWritableBookContent

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withWritableBookContent(content as WritableBookContent) as T
ParameterType
Parameter
content
Type
WritableBookContent

Link to withWritableBookContent

Name: withWritableBookContent

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withWritableBookContent(pages as stdlib.List<Filterable<string>>) as T
ParameterType
Parameter
pages
Type
stdlib.List<Filterable<string>>

Link to withWrittenBookContent

Name: withWrittenBookContent

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
IFluidStack.withWrittenBookContent(content as WrittenBookContent) as T
ParameterType
Parameter
content
Type
WrittenBookContent

Name: without

Return Type: IFluidStack

ZenScript
Copy
IFluidStack.without<T : Object>(type as DataComponentType<T>) as IFluidStack
ParameterType
Parameter
type
Type
DataComponentType<T>
Parameter
T
Type
Object

Link to withoutAttributeModifiers

Name: withoutAttributeModifiers

Removes the <componenttype:minecraft:attribute_modifiers> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutAttributeModifiers() as T

myIFluidStack.withoutAttributeModifiers();

Link to withoutBannerPatterns

Name: withoutBannerPatterns

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutBannerPatterns() as T

myIFluidStack.withoutBannerPatterns();

Link to withoutBaseColor

Name: withoutBaseColor

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutBaseColor() as T

myIFluidStack.withoutBaseColor();

Name: withoutBees

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutBees() as T

myIFluidStack.withoutBees();

Link to withoutBlockEntityData

Name: withoutBlockEntityData

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutBlockEntityData() as T

myIFluidStack.withoutBlockEntityData();

Link to withoutBlockState

Name: withoutBlockState

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutBlockState() as T

myIFluidStack.withoutBlockState();

Link to withoutBucketEntityData

Name: withoutBucketEntityData

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutBucketEntityData() as T

myIFluidStack.withoutBucketEntityData();

Link to withoutBundleContents

Name: withoutBundleContents

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutBundleContents() as T

myIFluidStack.withoutBundleContents();

Name: withoutCanBreak

Removes the <componenttype:minecraft:can_break> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutCanBreak() as T

myIFluidStack.withoutCanBreak();

Link to withoutCanPlaceOn

Name: withoutCanPlaceOn

Removes the <componenttype:minecraft:can_place_on> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutCanPlaceOn() as T

myIFluidStack.withoutCanPlaceOn();

Link to withoutChargedProjectiles

Name: withoutChargedProjectiles

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutChargedProjectiles() as T

myIFluidStack.withoutChargedProjectiles();

Link to withoutContainer

Name: withoutContainer

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutContainer() as T

myIFluidStack.withoutContainer();

Link to withoutContainerLoot

Name: withoutContainerLoot

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutContainerLoot() as T

myIFluidStack.withoutContainerLoot();

Link to withoutCreativeSlotLock

Name: withoutCreativeSlotLock

Removes the <componenttype:minecraft:creative_slot_lock> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutCreativeSlotLock() as T

myIFluidStack.withoutCreativeSlotLock();

Link to withoutCustomData

Name: withoutCustomData

Removes the <componenttype:minecraft:custom_data> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutCustomData() as T

myIFluidStack.withoutCustomData();

Link to withoutCustomModelData

Name: withoutCustomModelData

Removes the <componenttype:minecraft:custom_model_data> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutCustomModelData() as T

myIFluidStack.withoutCustomModelData();

Link to withoutCustomName

Name: withoutCustomName

Removes the <componenttype:minecraft:custom_name> from the ComponentAccess

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutCustomName() as T

myIFluidStack.withoutCustomName();

Name: withoutDamage

Removes the <componenttype:minecraft:damage> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutDamage() as T

myIFluidStack.withoutDamage();

Link to withoutDebugStickState

Name: withoutDebugStickState

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutDebugStickState() as T

myIFluidStack.withoutDebugStickState();

Link to withoutDyedColor

Name: withoutDyedColor

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutDyedColor() as T

myIFluidStack.withoutDyedColor();

Link to withoutEnchantment

Name: withoutEnchantment

Removes the Enchantment from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutEnchantment(enchantment as Enchantment) as T

myIFluidStack.withoutEnchantment(<enchantment:minecraft:mending>);
ParameterTypeDescription
Parameter
enchantment
Type
Enchantment
Description
The Enchantment to remove

Link to withoutEnchantmentGlintOverride

Name: withoutEnchantmentGlintOverride

Removes the <componenttype:minecraft:enchantment_glint_override> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutEnchantmentGlintOverride() as T

myIFluidStack.withoutEnchantmentGlintOverride();

Link to withoutEnchantments

Name: withoutEnchantments

Removes the <componenttype:minecraft:enchantments> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutEnchantments() as T

myIFluidStack.withoutEnchantments();

Link to withoutEntityDate

Name: withoutEntityDate

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutEntityDate() as T

myIFluidStack.withoutEntityDate();

Link to withoutFireResistant

Name: withoutFireResistant

Removes the <componenttype:minecraft:fire_resistant> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutFireResistant() as T

myIFluidStack.withoutFireResistant();

Link to withoutFireworkExplosion

Name: withoutFireworkExplosion

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutFireworkExplosion() as T

myIFluidStack.withoutFireworkExplosion();

Link to withoutFireworks

Name: withoutFireworks

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutFireworks() as T

myIFluidStack.withoutFireworks();

Name: withoutFood

Removes the <componenttype:minecraft:food> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutFood() as T

myIFluidStack.withoutFood();

Link to withoutHideAdditionalTooltip

Name: withoutHideAdditionalTooltip

Removes the <componenttype:minecraft:hide_additional_tooltip> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutHideAdditionalTooltip() as T

myIFluidStack.withoutHideAdditionalTooltip();

Link to withoutHideTooltip

Name: withoutHideTooltip

Removes the <componenttype:minecraft:hide_tooltip> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutHideTooltip() as T

myIFluidStack.withoutHideTooltip();

Link to withoutInstrument

Name: withoutInstrument

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutInstrument() as T

myIFluidStack.withoutInstrument();

Link to withoutIntangibleProjectile

Name: withoutIntangibleProjectile

Removes the <componenttype:minecraft:intangible_projectile> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutIntangibleProjectile() as T

myIFluidStack.withoutIntangibleProjectile();

Name: withoutItemName

Removes the <componenttype:minecraft:item_name> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutItemName() as T

myIFluidStack.withoutItemName();

Name: withoutLock

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutLock() as T

myIFluidStack.withoutLock();

Link to withoutLodestoneTracker

Name: withoutLodestoneTracker

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutLodestoneTracker() as T

myIFluidStack.withoutLodestoneTracker();

Name: withoutLore

Removes the <componenttype:minecraft:lore> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutLore() as T

myIFluidStack.withoutLore();

Name: withoutMapColor

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutMapColor() as T

myIFluidStack.withoutMapColor();

Link to withoutMapDecorations

Name: withoutMapDecorations

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutMapDecorations() as T

myIFluidStack.withoutMapDecorations();

Name: withoutMapId

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutMapId() as T

myIFluidStack.withoutMapId();

Link to withoutMapPostProcessing

Name: withoutMapPostProcessing

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutMapPostProcessing() as T

myIFluidStack.withoutMapPostProcessing();

Link to withoutMaxDamage

Name: withoutMaxDamage

Removes the <componenttype:minecraft:max_damage> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutMaxDamage() as T

myIFluidStack.withoutMaxDamage();

Link to withoutMaxStackSize

Name: withoutMaxStackSize

Removes the <componenttype:minecraft:stack_size> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutMaxStackSize() as T

myIFluidStack.withoutMaxStackSize();

Link to withoutNoteBlockSound

Name: withoutNoteBlockSound

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutNoteBlockSound() as T

myIFluidStack.withoutNoteBlockSound();

Link to withoutOminousBottleAmplifier

Name: withoutOminousBottleAmplifier

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutOminousBottleAmplifier() as T

myIFluidStack.withoutOminousBottleAmplifier();

Link to withoutPotDecorations

Name: withoutPotDecorations

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutPotDecorations() as T

myIFluidStack.withoutPotDecorations();

Link to withoutPotionContents

Name: withoutPotionContents

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutPotionContents() as T

myIFluidStack.withoutPotionContents();

Name: withoutProfile

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutProfile() as T

myIFluidStack.withoutProfile();

Name: withoutRarity

Removes the <componenttype:minecraft:rarity> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutRarity() as T

myIFluidStack.withoutRarity();

Name: withoutRecipes

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutRecipes() as T

myIFluidStack.withoutRecipes();

Link to withoutRepairCost

Name: withoutRepairCost

Removes the <componenttype:minecraft:repair_cost> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutRepairCost() as T

myIFluidStack.withoutRepairCost();

Link to withoutStoredEnchantments

Name: withoutStoredEnchantments

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutStoredEnchantments() as T

myIFluidStack.withoutStoredEnchantments();

Link to withoutSuspiciousStewEffects

Name: withoutSuspiciousStewEffects

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutSuspiciousStewEffects() as T

myIFluidStack.withoutSuspiciousStewEffects();

Name: withoutTool

Removes the <componenttype:minecraft:tool> from the ComponentAccess.

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutTool() as T

myIFluidStack.withoutTool();

Name: withoutTrim

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutTrim() as T

myIFluidStack.withoutTrim();

Link to withoutUnbreakable

Name: withoutUnbreakable

Removes the <componenttype:minecraft:unbreakable> from the ComponentAccess

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutUnbreakable() as T

myIFluidStack.withoutUnbreakable();

Link to withoutWritableBookContent

Name: withoutWritableBookContent

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutWritableBookContent() as T

myIFluidStack.withoutWritableBookContent();

Link to withoutWrittenBookContent

Name: withoutWrittenBookContent

Returns: The new instance with the modified data.
Return Type: T

ZenScript
Copy
// IFluidStack.withoutWrittenBookContent() as T

myIFluidStack.withoutWrittenBookContent();

Name: CONTAINS

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

ZenScript
Copy
other as IFluidStack in myIFluidStack

Name: MUL

Sets the fluid amount in MilliBuckets (mB)

ZenScript
Copy
myIFluidStack * amount as int
myIFluidStack * 1000

Name: OR

ZenScript
Copy
myIFluidStack | other as FluidIngredient
NameTypeHas GetterHas SetterDescription
Name
amount
Type
long
Has Getter
true
Has Setter
false
Description
Gets the fluid amount in MilliBuckets (mB).
Name
attributeModifiers
Type
ItemAttributeModifiers
Has Getter
true
Has Setter
false
Description
Gets the data in <componenttype:minecraft:attribute_modifiers>
Name
bannerPatterns
Type
BannerPatternLayers
Has Getter
true
Has Setter
false
Description
​
Name
baseColor
Type
invalid
Has Getter
true
Has Setter
false
Description
​
Name
bees
Type
stdlib.List<BeehiveBlockEntityOccupant>
Has Getter
true
Has Setter
false
Description
​
Name
blockEntityData
Type
CustomData
Has Getter
true
Has Setter
false
Description
​
Name
blockState
Type
BlockItemStateProperties
Has Getter
true
Has Setter
false
Description
​
Name
bucketEntityData
Type
CustomData
Has Getter
true
Has Setter
false
Description
​
Name
bundleContents
Type
BundleContents
Has Getter
true
Has Setter
false
Description
​
Name
canBreak
Type
invalid
Has Getter
true
Has Setter
false
Description
Gets the data in <componenttype:minecraft:can_break>
Name
canPlaceOn
Type
invalid
Has Getter
true
Has Setter
false
Description
Gets the data in <componenttype:minecraft:can_place_on>
Name
chargedProjectiles
Type
ChargedProjectiles
Has Getter
true
Has Setter
false
Description
​
Name
container
Type
ItemContainerContents
Has Getter
true
Has Setter
false
Description
​
Name
containerLoot
Type
SeededContainerLoot
Has Getter
true
Has Setter
false
Description
​
Name
creativeSlotLock
Type
boolean
Has Getter
true
Has Setter
false
Description
Gets the data in <componenttype:minecraft:creative_slot_lock>
Name
customData
Type
CustomData
Has Getter
true
Has Setter
false
Description
Gets the data in the <componenttype:minecraft:custom_data>
Name
customModelData
Type
CustomModelData
Has Getter
true
Has Setter
false
Description
Gets the data in <componenttype:minecraft:custom_model_data>
Name
customName
Type
Component
Has Getter
true
Has Setter
false
Description
Gets the data in the <componenttype:minecraft:custom_name>

A custom name is generally displayed in italics and controlled by the user.
Name
damage
Type
int
Has Getter
true
Has Setter
false
Description
Gets the data in the <componenttype:minecraft:damage>
Name
debugStickState
Type
DebugStickState
Has Getter
true
Has Setter
false
Description
​
Name
dyedColor
Type
DyedItemColor
Has Getter
true
Has Setter
false
Description
​
Name
empty
Type
boolean
Has Getter
true
Has Setter
false
Description
Gets whether this fluid stack is empty.
Name
enchantmentGlintOverride
Type
boolean
Has Getter
true
Has Setter
false
Description
Gets the data in <componenttype:minecraft:enchantment_glint_override>

If it is present, it is first checked to determine whether there is special behaviour, otherwise
the code checks for enchantments.
Name
enchantments
Type
ItemEnchantments
Has Getter
true
Has Setter
false
Description
Gets the data in <componenttype:minecraft:enchantments>
Name
entityData
Type
CustomData
Has Getter
true
Has Setter
false
Description
​
Name
fireworkExplosion
Type
FireworkExplosion
Has Getter
true
Has Setter
false
Description
​
Name
fireworks
Type
Fireworks
Has Getter
true
Has Setter
false
Description
​
Name
fluid
Type
Fluid
Has Getter
true
Has Setter
false
Description
Retrieves this fluid stack's fluid.
Name
food
Type
FoodProperties
Has Getter
true
Has Setter
false
Description
Gets the data in <componenttype:minecraft:food>
Name
hasAttributeModifiers
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has <componenttype:minecraft:attribute_modifiers>
Name
hasBannerPatterns
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasBaseColor
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasBees
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasBlockEntityData
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasBlockState
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasBucketEntityData
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasBundleContents
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasCanBreak
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has <componenttype:minecraft:can_break>
Name
hasCanPlaceOn
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has <componenttype:minecraft:can_place_on>
Name
hasChargedProjectiles
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasContainer
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasContainerLoot
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasCustomData
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has the <componenttype:minecraft:custom_data>
Name
hasCustomModelData
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has <componenttype:minecraft:custom_model_data>
Name
hasCustomName
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has the <componenttype:minecraft:custom_name>
Name
hasDamage
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has the <componenttype:minecraft:damage>
Name
hasDebugStickState
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasDyedColor
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasEnchantmentGlintOverride
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has <componenttype:minecraft:enchantment_glint_override>
Name
hasEnchantments
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has the <componenttype:minecraft:enchantments>
Name
hasEntityData
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasFireworkExplosion
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasFireworks
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasFood
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has <componenttype:minecraft:food>
Name
hasInstrument
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasItemName
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has the <componenttype:minecraft:item_namegt;
Name
hasLock
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasLodestoneTracker
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasLore
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has the <componenttype:minecraft:lore>
Name
hasMapColor
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasMapDecorations
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasMapId
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasMapPostProcessing
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasMaxDamage
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has the <componenttype:minecraft:max_damage>
Name
hasMaxStackSize
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has the <componenttype:minecraft:max_stack_size>
Name
hasNoteBlockSound
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasOminousBottleAmplifier
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasPotDecorations
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasPotionContents
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasProfile
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasRarity
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has the <componenttype:minecraft:rarity>
Name
hasRecipes
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasRepairCost
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has <componenttype:minecraft:repair_cost>
Name
hasStoredEnchantments
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasSuspiciousStewEffects
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasTool
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has <componenttype:minecraft:tool>
Name
hasTrim
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasUnbreakable
Type
boolean
Has Getter
true
Has Setter
false
Description
Checks whether the ComponentAccess has the <componenttype:minecraft:unbreakable>
Name
hasWritableBookContent
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hasWrittenBookContent
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
hideAdditionalTooltip
Type
boolean
Has Getter
true
Has Setter
false
Description
Gets the data in <componenttype:minecraft:hide_additional_tooltip>
Name
hideTooltip
Type
boolean
Has Getter
true
Has Setter
false
Description
Gets the data in <componenttype:minecraft:hide_tooltip>
Name
instrument
Type
Instrument
Has Getter
true
Has Setter
false
Description
​
Name
isFireResistant
Type
boolean
Has Getter
true
Has Setter
false
Description
Gets the data in <componenttype:minecraft:fire_resistant>
Name
isImmutable
Type
boolean
Has Getter
true
Has Setter
false
Description
​
Name
isIntangibleProjectile
Type
boolean
Has Getter
true
Has Setter
false
Description
Gets the data in <componenttype:minecraft:intangible_projectile>
Name
itemName
Type
Component
Has Getter
true
Has Setter
false
Description
Gets the data in the <componenttype:minecraft:custom_name>

In the case of items, an item name is set by the make to make a special instance of an item, such as with
ominous banners.
Name
lockComponent
Type
invalid
Has Getter
true
Has Setter
false
Description
​
Name
lodestoneTracker
Type
LodestoneTracker
Has Getter
true
Has Setter
false
Description
​
Name
lore
Type
ItemLore
Has Getter
true
Has Setter
false
Description
Gets the data in the <componenttype:minecraft:lore>
Name
mapColor
Type
MapItemColor
Has Getter
true
Has Setter
false
Description
​
Name
mapDecorations
Type
MapDecorations
Has Getter
true
Has Setter
false
Description
​
Name
mapId
Type
invalid
Has Getter
true
Has Setter
false
Description
​
Name
mapPostProcessing
Type
MapPostProcessing
Has Getter
true
Has Setter
false
Description
​
Name
maxDamage
Type
int
Has Getter
true
Has Setter
false
Description
Gets the data in the <componenttype:minecraft:max_damage>
Name
maxStackSize
Type
int
Has Getter
true
Has Setter
false
Description
Gets the data in the <componenttype:minecraft:max_stack_size>
Name
noteBlockSound
Type
ResourceLocation
Has Getter
true
Has Setter
false
Description
​
Name
ominousBottleAmplifier
Type
int
Has Getter
true
Has Setter
false
Description
​
Name
potDecorations
Type
PotDecorations
Has Getter
true
Has Setter
false
Description
​
Name
potionContents
Type
invalid
Has Getter
true
Has Setter
false
Description
​
Name
profile
Type
ResolvableProfile
Has Getter
true
Has Setter
false
Description
​
Name
rarity
Type
Rarity
Has Getter
true
Has Setter
false
Description
Gets the data in the <componenttype:minecraft:rarity>
Name
recipes
Type
stdlib.List<ResourceLocation>
Has Getter
true
Has Setter
false
Description
​
Name
registryName
Type
ResourceLocation
Has Getter
true
Has Setter
false
Description
Gets the registry name for the fluid this stack is representing.
Name
repairCost
Type
int
Has Getter
true
Has Setter
false
Description
Gets the data in <componenttype:minecraft:repair_cost>
Name
storedEnchantments
Type
ItemEnchantments
Has Getter
true
Has Setter
false
Description
​
Name
suspiciousStewEffects
Type
SuspiciousStewEffects
Has Getter
true
Has Setter
false
Description
​
Name
tool
Type
Tool
Has Getter
true
Has Setter
false
Description
Gets the data in <componenttype:minecraft:tool>
Name
trim
Type
ArmorTrim
Has Getter
true
Has Setter
false
Description
​
Name
unbreakable
Type
Unbreakable
Has Getter
true
Has Setter
false
Description
Gets the data in the <componenttype:minecraft:unbreakable>
Name
writableBookContent
Type
WritableBookContent
Has Getter
true
Has Setter
false
Description
​
Name
writtenBookContent
Type
WrittenBookContent
Has Getter
true
Has Setter
false
Description
​