MatterStorageCell

class MatterStorageCell(properties: Item.Properties, tier: StorageTier) : BasicStorageCell(source)

Constructors

Link copied to clipboard
constructor(properties: Item.Properties, tier: StorageTier)

Properties

Link copied to clipboard
val craftingRemainder: @Nullable ItemStackTemplate?
Link copied to clipboard
open val defaultInstance: ItemStack
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val idleDrain: Double
Link copied to clipboard
open val keyType: AEKeyType?
Link copied to clipboard
@get:Nullable
open val registryName: @Nullable Identifier?

Functions

Link copied to clipboard
open fun addCellInformationToTooltip(is: ItemStack?, lines: Consumer<Component?>?)
Link copied to clipboard
open fun addToMainCreativeTab(parameters: CreativeModeTab.ItemDisplayParameters?, output: CreativeModeTab.Output?)
Link copied to clipboard
open fun appendHoverText(stack: ItemStack, context: Item.TooltipContext, tooltipDisplay: TooltipDisplay, lines: Consumer<Component>, tooltipFlags: TooltipFlag)
Link copied to clipboard
open fun applyEnchantments(stack: ItemStack, enchantments: List<EnchantmentInstance>): ItemStack
Link copied to clipboard
open fun asItem(): Item
Link copied to clipboard
open fun builtInRegistryHolder(): Holder.Reference<Item>
Link copied to clipboard
open fun canBeHurtBy(stack: ItemStack, source: DamageSource): Boolean
Link copied to clipboard
open fun canContinueUsing(oldStack: ItemStack, newStack: ItemStack): Boolean
Link copied to clipboard
open fun canDestroyBlock(itemStack: ItemStack, state: BlockState, level: Level, pos: BlockPos, user: LivingEntity): Boolean
Link copied to clipboard
open fun canEquip(stack: ItemStack, armorType: EquipmentSlot, entity: LivingEntity): Boolean
Link copied to clipboard
Link copied to clipboard
open fun canGrindstoneRepair(stack: ItemStack): Boolean
Link copied to clipboard
open fun canPerformAction(stack: ItemInstance, itemAbility: ItemAbility): Boolean
Link copied to clipboard
open fun canWalkOnPowderedSnow(stack: ItemStack, wearer: LivingEntity): Boolean
Link copied to clipboard
open fun components(): DataComponentMap
Link copied to clipboard
@ApiStatus.Internal
open fun computeDefaultResource(resourceConstructor: Function<Item, ItemResource>): ItemResource
Link copied to clipboard
open fun createEntity(level: Level, location: Entity, stack: ItemStack): @Nullable Entity?
Link copied to clipboard
open fun <T : LivingEntity> damageItem(stack: ItemStack, amount: Int, entity: @Nullable T?, onBroken: Consumer<Item>): Int
Link copied to clipboard
open fun doesSneakBypassUse(stack: ItemStack, level: LevelReader, pos: BlockPos, player: Player): Boolean
Link copied to clipboard
open fun finishUsingItem(itemStack: ItemStack, level: Level, entity: LivingEntity): ItemStack
Link copied to clipboard
@ApiStatus.OverrideOnly
open fun getAllEnchantments(stack: ItemStack, lookup: HolderLookup.RegistryLookup<Enchantment>): ItemEnchantments
Link copied to clipboard
open fun getAttackDamageBonus(victim: Entity, damage: Float, damageSource: DamageSource): Float
Link copied to clipboard
open fun getBarColor(stack: ItemStack): Int
Link copied to clipboard
open fun getBarWidth(stack: ItemStack): Int
Link copied to clipboard
@ApiStatus.OverrideOnly
open fun getBurnTime(itemStack: ItemStack, recipeType: @Nullable RecipeType<*>?, fuelValues: FuelValues): Int
Link copied to clipboard
open fun getBytes(cellItem: ItemStack?): Int
Link copied to clipboard
open fun getBytesPerType(cellItem: ItemStack?): Int
Link copied to clipboard
open fun getCellTooltipImage(is: ItemStack?): Optional<TooltipComponent?>?
Link copied to clipboard
open fun getConfigInventory(is: ItemStack?): ConfigInventory?
Link copied to clipboard
open fun getCraftingRemainder(instance: ItemInstance): @Nullable ItemStackTemplate?
Link copied to clipboard
open fun getCreatorModId(registries: HolderLookup.Provider, itemStack: ItemStack): @Nullable String?
Link copied to clipboard
open fun getDamage(stack: ItemStack): Int
Link copied to clipboard
open fun getDefaultAttributeModifiers(stack: ItemStack): ItemAttributeModifiers
Link copied to clipboard
open fun getDestroySpeed(itemStack: ItemStack, state: BlockState): Float
Link copied to clipboard
@ApiStatus.OverrideOnly
open fun getEnchantmentLevel(stack: ItemInstance, enchantment: Holder<Enchantment>): Int
Link copied to clipboard
open fun getEntityLifespan(itemStack: ItemStack, level: Level): Int
Link copied to clipboard
open fun getEquipmentSlot(stack: ItemStack): @Nullable EquipmentSlot?
Link copied to clipboard
open fun getFuzzyMode(is: ItemStack?): FuzzyMode?
Link copied to clipboard
open fun getHighlightTip(item: ItemStack, displayName: Component): Component
Link copied to clipboard
open fun getItemDamageSource(attacker: LivingEntity): @Nullable DamageSource?
Link copied to clipboard
open fun getMaxDamage(stack: ItemStack): Int
Link copied to clipboard
open fun getMaxStackSize(stack: ItemStack): Int
Link copied to clipboard
open fun getName(itemStack: ItemStack): Component
Link copied to clipboard
open fun getSweepHitBox(stack: ItemStack, player: Player, target: Entity): AABB
Link copied to clipboard
open fun getTooltipImage(stack: ItemStack): Optional<TooltipComponent>
Link copied to clipboard
open fun getTotalTypes(cellItem: ItemStack?): Int
Link copied to clipboard
open fun getUpgrades(is: ItemStack?): IUpgradeInventory?
Link copied to clipboard
open fun getUseAnimation(itemStack: ItemStack): ItemUseAnimation
Link copied to clipboard
open fun getUseDuration(itemStack: ItemStack, user: LivingEntity): Int
Link copied to clipboard
open fun getXpRepairRatio(stack: ItemStack): Float
Link copied to clipboard
open fun hasCustomEntity(stack: ItemStack): Boolean
Link copied to clipboard
open fun hurtEnemy(itemStack: ItemStack, mob: LivingEntity, attacker: LivingEntity)
Link copied to clipboard
open fun interactLivingEntity(itemStack: ItemStack, player: Player, target: LivingEntity, type: InteractionHand): InteractionResult
Link copied to clipboard
open fun inventoryTick(itemStack: ItemStack, level: ServerLevel, owner: Entity, slot: @Nullable EquipmentSlot?)
Link copied to clipboard
open fun isBarVisible(stack: ItemStack): Boolean
Link copied to clipboard
open fun isBlackListed(cellItem: ItemStack?, requestedAddition: AEKey?): Boolean
Link copied to clipboard
open fun isCombineRepairable(stack: ItemStack): Boolean
Link copied to clipboard
open fun isCorrectToolForDrops(itemStack: ItemStack, state: BlockState): Boolean
Link copied to clipboard
open fun isDamageable(stack: ItemStack): Boolean
Link copied to clipboard
open fun isDamaged(stack: ItemStack): Boolean
Link copied to clipboard
open fun isEditable(is: ItemStack?): Boolean
Link copied to clipboard
open fun isEnabled(enabledFeatures: FeatureFlagSet): Boolean
Link copied to clipboard
open fun isFoil(itemStack: ItemStack): Boolean
Link copied to clipboard
open fun isGazeDisguise(stack: ItemStack, player: Player, entity: @Nullable LivingEntity?): Boolean
Link copied to clipboard
open fun isNotReplaceableByPickAction(stack: ItemStack, player: Player, inventorySlot: Int): Boolean
Link copied to clipboard
open fun isPiglinCurrency(stack: ItemStack): Boolean
Link copied to clipboard
@ApiStatus.OverrideOnly
open fun isPrimaryItemFor(stack: ItemStack, enchantment: Holder<Enchantment>): Boolean
Link copied to clipboard
open fun isStorageCell(i: ItemStack?): Boolean
Link copied to clipboard
open fun makesPiglinsNeutral(stack: ItemStack, wearer: LivingEntity): Boolean
Link copied to clipboard
open fun mineBlock(itemStack: ItemStack, level: Level, state: BlockState, pos: BlockPos, owner: LivingEntity): Boolean
Link copied to clipboard
@ApiStatus.OverrideOnly
open fun onAnimalArmorTick(stack: ItemStack, level: Level, horse: Mob)
Link copied to clipboard
open fun onCraftedBy(itemStack: ItemStack, player: Player)
Link copied to clipboard
open fun onCraftedPostProcess(itemStack: ItemStack, level: Level)
Link copied to clipboard
open fun onDestroyed(itemEntity: ItemEntity)
open fun onDestroyed(itemEntity: ItemEntity, damageSource: DamageSource)
Link copied to clipboard
open fun onDroppedByPlayer(item: ItemStack, player: Player): Boolean
Link copied to clipboard
open fun onEntityItemUpdate(stack: ItemStack, entity: ItemEntity): Boolean
Link copied to clipboard
open fun onEntitySwing(stack: ItemStack, entity: LivingEntity, hand: InteractionHand): Boolean
Link copied to clipboard
open fun onItemUseFirst(stack: ItemStack, context: UseOnContext): InteractionResult
Link copied to clipboard
open fun onLeftClickEntity(stack: ItemStack, player: Player, entity: Entity): Boolean
Link copied to clipboard
open fun onStopUsing(stack: ItemStack, entity: LivingEntity, count: Int)
Link copied to clipboard
open fun onUseTick(level: Level, livingEntity: LivingEntity, itemStack: ItemStack, ticksRemaining: Int)
Link copied to clipboard
open fun overrideOtherStackedOnMe(self: ItemStack, other: ItemStack, slot: Slot, clickAction: ClickAction, player: Player, carriedItem: SlotAccess): Boolean
Link copied to clipboard
open fun overrideStackedOnOther(self: ItemStack, slot: Slot, clickAction: ClickAction, player: Player): Boolean
Link copied to clipboard
open fun postHurtEnemy(itemStack: ItemStack, mob: LivingEntity, attacker: LivingEntity)
Link copied to clipboard
open fun releaseUsing(itemStack: ItemStack, level: Level, entity: LivingEntity, remainingTime: Int): Boolean
Link copied to clipboard
fun requiredFeatures(): FeatureFlagSet
Link copied to clipboard
@ApiStatus.Internal
open fun resetDefaultResource()
Link copied to clipboard
open fun setDamage(stack: ItemStack, damage: Int)
Link copied to clipboard
open fun setFuzzyMode(is: ItemStack?, fzMode: FuzzyMode?)
Link copied to clipboard
open fun shouldCauseBlockBreakReset(oldStack: ItemStack, newStack: ItemStack): Boolean
Link copied to clipboard
open fun shouldCauseReequipAnimation(oldStack: ItemStack, newStack: ItemStack, slotChanged: Boolean): Boolean
Link copied to clipboard
open fun shouldPrintOpWarning(stack: ItemStack, player: @Nullable Player?): Boolean
Link copied to clipboard
Link copied to clipboard
@ApiStatus.OverrideOnly
open fun supportsEnchantment(stack: ItemStack, enchantment: Holder<Enchantment>): Boolean
Link copied to clipboard
open fun use(level: Level, player: Player, hand: InteractionHand): InteractionResult
Link copied to clipboard
open fun useOn(context: UseOnContext): InteractionResult
Link copied to clipboard
open fun useOnRelease(itemStack: ItemStack): Boolean