Class MEGAPortableCell

java.lang.Object
net.minecraft.world.item.Item
appeng.items.AEBaseItem
appeng.items.tools.powered.powersink.AEBasePoweredItem
appeng.items.tools.powered.PoweredContainerItem
appeng.items.tools.powered.AbstractPortableCell
appeng.items.tools.powered.PortableCellItem
gripe._90.megacells.item.cell.MEGAPortableCell
All Implemented Interfaces:
appeng.api.implementations.items.IAEItemPowerStorage, appeng.api.implementations.menuobjects.IMenuItem, appeng.api.storage.cells.IBasicCellItem, appeng.api.storage.cells.ICellWorkbenchItem, appeng.api.upgrades.IUpgradeableItem, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.neoforged.neoforge.common.extensions.IItemExtension

public class MEGAPortableCell extends appeng.items.tools.powered.PortableCellItem
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.item.Item

    net.minecraft.world.item.Item.Properties, net.minecraft.world.item.Item.TooltipContext
  • Field Summary

    Fields inherited from class net.minecraft.world.item.Item

    ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, canRepair, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTH

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    MEGAPortableCell(net.minecraft.world.item.Item.Properties props, appeng.items.storage.StorageTier tier, appeng.api.stacks.AEKeyType keyType, net.minecraft.world.inventory.MenuType<appeng.menu.me.common.MEStorageMenu> menu, int defaultColour)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getAEMaxPower(net.minecraft.world.item.ItemStack stack)
     
    double
    getChargeRate(net.minecraft.world.item.ItemStack stack)
     
    double
     
    net.minecraft.resources.ResourceLocation
     

    Methods inherited from class appeng.items.tools.powered.PortableCellItem

    appendHoverText, getBytes, getBytesPerType, getConfigInventory, getFuzzyMode, getKeyType, getTier, getTooltipImage, getTotalTypes, getUpgrades, setFuzzyMode

    Methods inherited from class appeng.items.tools.powered.AbstractPortableCell

    getColor, getColor, getMenuHost, onItemUseFirst, onUpgradesChanged, openFromInventory, openFromInventory, use

    Methods inherited from class appeng.items.tools.powered.PoweredContainerItem

    insert, overrideOtherStackedOnMe, overrideStackedOnOther, tryInsertFromPlayerOwnedItem, tryInsertFromPlayerOwnedItem

    Methods inherited from class appeng.items.tools.powered.powersink.AEBasePoweredItem

    addToMainCreativeTab, extractAEPower, getAECurrentPower, getBarColor, getBarWidth, getPowerFlow, injectAEPower, isBarVisible, resetAEMaxPower, setAECurrentPower, setAEMaxPower, setAEMaxPowerMultiplier, shouldCauseReequipAnimation

    Methods inherited from class appeng.items.AEBaseItem

    getRegistryName, toString

    Methods inherited from class net.minecraft.world.item.Item

    asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, isRepairable, isValidRepairItem, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, postHurtEnemy, releaseUsing, requiredFeatures, useOn, useOnRelease, verifyComponentsAfterLoad

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled

    Methods inherited from interface appeng.api.storage.cells.IBasicCellItem

    addCellInformationToTooltip, getCellTooltipImage, isBlackListed, isStorageCell, storableInStorageCell

    Methods inherited from interface appeng.api.storage.cells.ICellWorkbenchItem

    isEditable

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtension

    applyEnchantments, canBeHurtBy, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultAttributeModifiers, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, isPrimaryItemFor, makesPiglinsNeutral, onAnimalArmorTick, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onEntitySwing, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, supportsEnchantment

    Methods inherited from interface net.minecraft.world.level.ItemLike

    asItem
  • Constructor Details

    • MEGAPortableCell

      public MEGAPortableCell(net.minecraft.world.item.Item.Properties props, appeng.items.storage.StorageTier tier, appeng.api.stacks.AEKeyType keyType, net.minecraft.world.inventory.MenuType<appeng.menu.me.common.MEStorageMenu> menu, int defaultColour)
  • Method Details

    • getIdleDrain

      public double getIdleDrain()
      Specified by:
      getIdleDrain in interface appeng.api.storage.cells.IBasicCellItem
      Overrides:
      getIdleDrain in class appeng.items.tools.powered.PortableCellItem
    • getRecipeId

      public net.minecraft.resources.ResourceLocation getRecipeId()
      Overrides:
      getRecipeId in class appeng.items.tools.powered.PortableCellItem
    • getChargeRate

      public double getChargeRate(net.minecraft.world.item.ItemStack stack)
      Specified by:
      getChargeRate in interface appeng.api.implementations.items.IAEItemPowerStorage
      Overrides:
      getChargeRate in class appeng.items.tools.powered.PortableCellItem
    • getAEMaxPower

      public double getAEMaxPower(net.minecraft.world.item.ItemStack stack)
      Specified by:
      getAEMaxPower in interface appeng.api.implementations.items.IAEItemPowerStorage
      Overrides:
      getAEMaxPower in class appeng.items.tools.powered.powersink.AEBasePoweredItem