Class ItemStackMixin
java.lang.Object
dev.latvian.mods.kubejs.core.mixin.ItemStackMixin
- All Implemented Interfaces:
AttributeModifierFunctions,ComponentFunctions,ItemComponentFunctions,MutableDataComponentHolderFunctions,IngredientSupplierKJS,ItemStackKJS,RegistryObjectKJS<net.minecraft.world.item.Item>,ItemMatch,Replaceable,ReplacementMatch,JsonSerializable,NBTSerializable,WithCodec,dev.latvian.mods.rhino.util.SpecialEquality,dev.latvian.mods.rhino.util.ToStringJS
@RemapPrefixForJS("kjs$")
public abstract class ItemStackMixin
extends Object
implements ItemStackKJS
-
Field Summary
Fields inherited from interface dev.latvian.mods.kubejs.recipe.match.ReplacementMatch
NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidenchant(net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> enchantment, int level) abstract net.minecraft.world.item.enchantment.ItemEnchantmentsabstract Stream<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>> getTags()kjs$resetComponents(dev.latvian.mods.rhino.Context cx) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.component.AttributeModifierFunctions
kjs$addAttributeModifier, kjs$getAttackDamage, kjs$getAttackSpeed, kjs$getAttributeModifier, kjs$getBaseAttackDamage, kjs$getBaseAttackSpeed, kjs$hasAttributeModifier, kjs$setAttackDamage, kjs$setAttackSpeed, kjs$setAttributeModifiers, kjs$setAttributeModifiersWithTooltip, kjs$setBaseAttackDamage, kjs$setBaseAttackSpeedMethods inherited from interface dev.latvian.mods.kubejs.component.ComponentFunctions
kjs$get, kjs$getCustomData, kjs$getCustomName, kjs$remove, kjs$set, kjs$setAdditionalTooltipHidden, kjs$setBaseColor, kjs$setBlockStateProperties, kjs$setContainerLootTable, kjs$setContainerLootTable, kjs$setCustomData, kjs$setCustomModelData, kjs$setCustomName, kjs$setDyedColor, kjs$setDyedColorWithTooltip, kjs$setEntityData, kjs$setGlintOverride, kjs$setLockCode, kjs$setLore, kjs$setLore, kjs$setPotionContents, kjs$setPotionId, kjs$setProfile, kjs$setProfile, kjs$setRarity, kjs$setTooltipHidden, kjs$setUnitMethods inherited from interface dev.latvian.mods.kubejs.component.ItemComponentFunctions
kjs$getAttributeModifiers, kjs$modifyFood, kjs$setAttributeModifiers, kjs$setBlockEntityData, kjs$setBucketEntityData, kjs$setBundleContents, kjs$setChargedProjectiles, kjs$setDamage, kjs$setFireResistant, kjs$setFireworkExplosion, kjs$setFireworks, kjs$setFood, kjs$setFood, kjs$setInstrument, kjs$setItemName, kjs$setMapItemColor, kjs$setMaxDamage, kjs$setMaxStackSize, kjs$setNoteBlockSound, kjs$setRepairCost, kjs$setTool, kjs$setUnbreakable, kjs$setUnbreakableWithTooltipMethods inherited from interface dev.latvian.mods.kubejs.recipe.match.ItemMatch
matchesAnyMethods inherited from interface dev.latvian.mods.kubejs.core.ItemStackKJS
getCodec, kjs$areComponentsEqual, kjs$areItemsEqual, kjs$asHolder, kjs$asIngredient, kjs$enchant, kjs$enchant, kjs$equalsIgnoringCount, kjs$getBlock, kjs$getComponentString, kjs$getEnchantments, kjs$getHarvestSpeed, kjs$getHarvestSpeed, kjs$getId, kjs$getIdLocation, kjs$getKey, kjs$getMod, kjs$getRegistry, kjs$getRegistryId, kjs$getTypeData, kjs$getWebIconURL, kjs$hasEnchantment, kjs$self, kjs$toItemString, kjs$toItemString0, kjs$withChance, kjs$withCount, kjs$withCustomName, kjs$withLore, kjs$withLore, matches, matches, matches, replaceThisWith, specialEquals, toStringJSMethods inherited from interface dev.latvian.mods.kubejs.component.MutableDataComponentHolderFunctions
kjs$getComponentHolder, kjs$getComponentMap, kjs$override, kjs$patch, kjs$setMethods inherited from interface dev.latvian.mods.kubejs.core.RegistryObjectKJS
kjs$getTagKeys, kjs$getTags, kjs$hasTag
-
Constructor Details
-
ItemStackMixin
public ItemStackMixin()
-
-
Method Details
-
enchant
@HideFromJS public abstract void enchant(net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> enchantment, int level) -
getEnchantments
@HideFromJS public abstract net.minecraft.world.item.enchantment.ItemEnchantments getEnchantments() -
getTags
@HideFromJS public abstract Stream<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>> getTags() -
kjs$resetComponents
- Specified by:
kjs$resetComponentsin interfaceComponentFunctions
-