Class CellDockPart

java.lang.Object
appeng.parts.AEBasePart
gripe._90.megacells.item.part.CellDockPart
All Implemented Interfaces:
appeng.api.implementations.blockentities.IChestOrDrive, appeng.api.implementations.IPowerChannelState, appeng.api.inventories.ISegmentedInventory, appeng.api.networking.IGridNodeService, appeng.api.networking.security.IActionHost, appeng.api.parts.ICustomCableConnection, appeng.api.parts.IPart, appeng.api.storage.IStorageProvider, appeng.api.storage.ISubMenuHost, appeng.helpers.IPriorityHost, appeng.util.IDebugExportable, appeng.util.inv.InternalInventoryHost, net.minecraft.world.Clearable, net.minecraft.world.Nameable

public class CellDockPart extends appeng.parts.AEBasePart implements appeng.util.inv.InternalInventoryHost, appeng.api.implementations.blockentities.IChestOrDrive, appeng.api.storage.IStorageProvider, appeng.helpers.IPriorityHost
  • Nested Class Summary

    Nested classes/interfaces inherited from class appeng.parts.AEBasePart

    appeng.parts.AEBasePart.NodeListener<T extends appeng.parts.AEBasePart>
  • Field Summary

    Fields inherited from interface appeng.api.inventories.ISegmentedInventory

    CELLS, CONFIG, STORAGE, UPGRADES
  • Constructor Summary

    Constructors
    Constructor
    Description
    CellDockPart(appeng.api.parts.IPartItem<?> partItem)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAdditionalDrops(List<net.minecraft.world.item.ItemStack> drops, boolean wrenched)
     
    void
    getBoxes(appeng.api.parts.IPartCollisionHelper bch)
     
    int
     
    appeng.blockentity.inventory.AppEngCellInventory
     
    @Nullable appeng.api.storage.MEStorage
    getCellInventory(int slot)
     
    @Nullable net.minecraft.world.item.Item
    getCellItem(int slot)
     
    appeng.api.storage.cells.CellState
    getCellStatus(int slot)
     
    net.minecraft.world.item.ItemStack
     
    net.neoforged.neoforge.client.model.data.ModelData
     
    @Nullable appeng.api.storage.cells.StorageCell
     
    int
     
    appeng.api.parts.IPartModel
     
    boolean
    isCellBlinking(int slot)
     
    void
    mountInventories(appeng.api.storage.IStorageMounts storageMounts)
     
    void
    onChangeInventory(appeng.util.inv.AppEngInternalInventory inv, int slot)
     
    protected void
    onMainNodeStateChanged(appeng.api.networking.IGridNodeListener.State reason)
     
    void
    onPlacement(net.minecraft.world.entity.player.Player player)
     
    boolean
    onUseItemOn(net.minecraft.world.item.ItemStack heldItem, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.Vec3 pos)
     
    boolean
    onUseWithoutItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.Vec3 pos)
     
    void
    readFromNBT(net.minecraft.nbt.CompoundTag data, net.minecraft.core.HolderLookup.Provider registries)
     
    boolean
    readFromStream(net.minecraft.network.RegistryFriendlyByteBuf data)
     
    void
    readVisualStateFromNBT(net.minecraft.nbt.CompoundTag data)
     
    void
    renderDynamic(float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource buffers, int combinedLightIn, int combinedOverlayIn)
     
    boolean
     
    void
    returnToMainMenu(net.minecraft.world.entity.player.Player player, appeng.menu.ISubMenu subMenu)
     
    void
    saveChangedInventory(appeng.util.inv.AppEngInternalInventory inv)
     
    void
    setPriority(int newValue)
     
    void
    writeToNBT(net.minecraft.nbt.CompoundTag data, net.minecraft.core.HolderLookup.Provider registries)
     
    void
    writeToStream(net.minecraft.network.RegistryFriendlyByteBuf data)
     
    void
    writeVisualStateToNBT(net.minecraft.nbt.CompoundTag data)
     

    Methods inherited from class appeng.parts.AEBasePart

    addEntityCrashInfo, addToWorld, createMainNode, debugExport, exportSettings, exportSettings, getActionableNode, getBlockEntity, getCableConnectionLength, getColor, getCustomName, getGridNode, getHost, getLevel, getMainNode, getName, getPartItem, getSide, getSubInventory, importSettings, isActive, isClientSide, isMissingChannel, isPowered, removeFromWorld, setPartHostInfo, setPartItem, shouldSendMissingChannelStateToClient, shouldSendPowerStateToClient, useStandardMemoryCard

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface appeng.api.networking.security.IActionHost

    getActionableNode

    Methods inherited from interface appeng.api.implementations.blockentities.IChestOrDrive

    isPowered

    Methods inherited from interface appeng.util.inv.InternalInventoryHost

    isClientSide

    Methods inherited from interface appeng.api.parts.IPart

    addPartDrop, animateTick, canBePlacedOn, canConnectRedstone, clearContent, getDesiredConnectionType, getExternalCableConnectionType, getExternalFacingNode, getLightLevel, isLadder, isProvidingStrongPower, isProvidingWeakPower, isSolid, onClicked, onEntityCollision, onNeighborChanged, onShiftClicked, onUpdateShape

    Methods inherited from interface net.minecraft.world.Nameable

    getDisplayName, hasCustomName
  • Constructor Details

    • CellDockPart

      public CellDockPart(appeng.api.parts.IPartItem<?> partItem)
  • Method Details

    • readFromNBT

      public void readFromNBT(net.minecraft.nbt.CompoundTag data, net.minecraft.core.HolderLookup.Provider registries)
      Specified by:
      readFromNBT in interface appeng.api.parts.IPart
      Overrides:
      readFromNBT in class appeng.parts.AEBasePart
    • writeToNBT

      public void writeToNBT(net.minecraft.nbt.CompoundTag data, net.minecraft.core.HolderLookup.Provider registries)
      Specified by:
      writeToNBT in interface appeng.api.parts.IPart
      Overrides:
      writeToNBT in class appeng.parts.AEBasePart
    • readFromStream

      public boolean readFromStream(net.minecraft.network.RegistryFriendlyByteBuf data)
      Specified by:
      readFromStream in interface appeng.api.parts.IPart
      Overrides:
      readFromStream in class appeng.parts.AEBasePart
    • writeToStream

      public void writeToStream(net.minecraft.network.RegistryFriendlyByteBuf data)
      Specified by:
      writeToStream in interface appeng.api.parts.IPart
      Overrides:
      writeToStream in class appeng.parts.AEBasePart
    • readVisualStateFromNBT

      public void readVisualStateFromNBT(net.minecraft.nbt.CompoundTag data)
      Specified by:
      readVisualStateFromNBT in interface appeng.api.parts.IPart
      Overrides:
      readVisualStateFromNBT in class appeng.parts.AEBasePart
    • writeVisualStateToNBT

      public void writeVisualStateToNBT(net.minecraft.nbt.CompoundTag data)
      Specified by:
      writeVisualStateToNBT in interface appeng.api.parts.IPart
      Overrides:
      writeVisualStateToNBT in class appeng.parts.AEBasePart
    • onMainNodeStateChanged

      protected void onMainNodeStateChanged(appeng.api.networking.IGridNodeListener.State reason)
      Overrides:
      onMainNodeStateChanged in class appeng.parts.AEBasePart
    • onUseWithoutItem

      public boolean onUseWithoutItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.Vec3 pos)
      Specified by:
      onUseWithoutItem in interface appeng.api.parts.IPart
    • onUseItemOn

      public boolean onUseItemOn(net.minecraft.world.item.ItemStack heldItem, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.Vec3 pos)
      Specified by:
      onUseItemOn in interface appeng.api.parts.IPart
      Overrides:
      onUseItemOn in class appeng.parts.AEBasePart
    • onPlacement

      public void onPlacement(net.minecraft.world.entity.player.Player player)
      Specified by:
      onPlacement in interface appeng.api.parts.IPart
      Overrides:
      onPlacement in class appeng.parts.AEBasePart
    • returnToMainMenu

      public void returnToMainMenu(net.minecraft.world.entity.player.Player player, appeng.menu.ISubMenu subMenu)
      Specified by:
      returnToMainMenu in interface appeng.api.storage.ISubMenuHost
    • getMainMenuIcon

      public net.minecraft.world.item.ItemStack getMainMenuIcon()
      Specified by:
      getMainMenuIcon in interface appeng.api.storage.ISubMenuHost
    • addAdditionalDrops

      public void addAdditionalDrops(List<net.minecraft.world.item.ItemStack> drops, boolean wrenched)
      Specified by:
      addAdditionalDrops in interface appeng.api.parts.IPart
    • getCellInventory

      public appeng.blockentity.inventory.AppEngCellInventory getCellInventory()
    • getCellCount

      public int getCellCount()
      Specified by:
      getCellCount in interface appeng.api.implementations.blockentities.IChestOrDrive
    • isCellBlinking

      public boolean isCellBlinking(int slot)
      Specified by:
      isCellBlinking in interface appeng.api.implementations.blockentities.IChestOrDrive
    • getCellItem

      @Nullable public @Nullable net.minecraft.world.item.Item getCellItem(int slot)
      Specified by:
      getCellItem in interface appeng.api.implementations.blockentities.IChestOrDrive
    • getCellInventory

      @Nullable public @Nullable appeng.api.storage.MEStorage getCellInventory(int slot)
      Specified by:
      getCellInventory in interface appeng.api.implementations.blockentities.IChestOrDrive
    • getOriginalCellInventory

      @Nullable public @Nullable appeng.api.storage.cells.StorageCell getOriginalCellInventory(int slot)
      Specified by:
      getOriginalCellInventory in interface appeng.api.implementations.blockentities.IChestOrDrive
    • getCellStatus

      public appeng.api.storage.cells.CellState getCellStatus(int slot)
      Specified by:
      getCellStatus in interface appeng.api.implementations.blockentities.IChestOrDrive
    • mountInventories

      public void mountInventories(appeng.api.storage.IStorageMounts storageMounts)
      Specified by:
      mountInventories in interface appeng.api.storage.IStorageProvider
    • saveChangedInventory

      public void saveChangedInventory(appeng.util.inv.AppEngInternalInventory inv)
      Specified by:
      saveChangedInventory in interface appeng.util.inv.InternalInventoryHost
    • onChangeInventory

      public void onChangeInventory(appeng.util.inv.AppEngInternalInventory inv, int slot)
      Specified by:
      onChangeInventory in interface appeng.util.inv.InternalInventoryHost
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface appeng.helpers.IPriorityHost
    • setPriority

      public void setPriority(int newValue)
      Specified by:
      setPriority in interface appeng.helpers.IPriorityHost
    • getStaticModels

      public appeng.api.parts.IPartModel getStaticModels()
      Specified by:
      getStaticModels in interface appeng.api.parts.IPart
    • getBoxes

      public void getBoxes(appeng.api.parts.IPartCollisionHelper bch)
      Specified by:
      getBoxes in interface appeng.api.parts.IPart
    • requireDynamicRender

      public boolean requireDynamicRender()
      Specified by:
      requireDynamicRender in interface appeng.api.parts.IPart
    • renderDynamic

      public void renderDynamic(float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource buffers, int combinedLightIn, int combinedOverlayIn)
      Specified by:
      renderDynamic in interface appeng.api.parts.IPart
    • getModelData

      public net.neoforged.neoforge.client.model.data.ModelData getModelData()
      Specified by:
      getModelData in interface appeng.api.parts.IPart