Class MEGAInterfaceBlockEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
appeng.blockentity.AEBaseBlockEntity
appeng.blockentity.grid.AENetworkedBlockEntity
appeng.blockentity.misc.InterfaceBlockEntity
gripe._90.megacells.block.entity.MEGAInterfaceBlockEntity
All Implemented Interfaces:
appeng.api.inventories.ISegmentedInventory, appeng.api.networking.IInWorldGridNodeHost, appeng.api.networking.security.IActionHost, appeng.api.storage.ISubMenuHost, appeng.api.upgrades.IUpgradeableObject, appeng.api.util.IConfigurableObject, appeng.block.IOwnerAwareBlockEntity, appeng.helpers.IConfigInvHost, appeng.helpers.InterfaceLogicHost, appeng.helpers.IPriorityHost, appeng.me.helpers.IGridConnectedBlockEntity, appeng.util.IDebugExportable, net.minecraft.world.Clearable, net.minecraft.world.Nameable, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class MEGAInterfaceBlockEntity extends appeng.blockentity.misc.InterfaceBlockEntity
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity

    net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput

    Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    net.neoforged.neoforge.attachment.AttachmentHolder.AsField
  • Field Summary

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    ATTACHMENTS_NBT_KEY

    Fields inherited from interface appeng.api.inventories.ISegmentedInventory

    CELLS, CONFIG, STORAGE, UPGRADES
  • Constructor Summary

    Constructors
    Constructor
    Description
    MEGAInterfaceBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected appeng.helpers.InterfaceLogic
     
    net.minecraft.world.item.ItemStack
     
    void
    openMenu(net.minecraft.world.entity.player.Player player, appeng.menu.locator.MenuHostLocator locator)
     
    void
    returnToMainMenu(net.minecraft.world.entity.player.Player player, appeng.menu.ISubMenu subMenu)
     

    Methods inherited from class appeng.blockentity.misc.InterfaceBlockEntity

    addAdditionalDrops, clearContent, createMainNode, getCableConnectionType, getInterfaceLogic, getSubInventory, loadTag, onMainNodeStateChanged, saveAdditional

    Methods inherited from class appeng.blockentity.grid.AENetworkedBlockEntity

    clearRemoved, getMainNode, onChunkUnloaded, onGridConnectableSidesChanged, onOrientationChanged, onReady, setRemoved

    Methods inherited from class appeng.blockentity.AEBaseBlockEntity

    debugExport, disassembleWithWrench, exportSettings, exportSettings, getBlockEntity, getCustomName, getFront, getGlobalPos, getItemFromBlockEntity, getModelData, getName, getOrientation, getQueuedForReady, getReadyInvoked, getTop, getUpdatePacket, getUpdateTag, importSettings, isClientSide, loadAdditional, loadVisualState, markForClientUpdate, markForUpdate, notLoaded, readFromStream, registerBlockEntityItem, saveChanges, saveVisualState, scheduleInit, setBlockState, setName, writeToStream

    Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity

    addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setChanged, setChanged, setComponents, setData, setLevel, triggerEvent

    Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    deserializeAttachments, getData, getExistingData, hasAttachments, hasData, serializeAttachments

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder

    getData, getExistingData, hasData, removeData, setData

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

    handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onDataPacket, onLoad, requestModelDataUpdate

    Methods inherited from interface appeng.me.helpers.IGridConnectedBlockEntity

    getActionableNode, getGridConnectableSides, getGridNode, getGridNode, ifGridPresent, saveChanges, setOwner

    Methods inherited from interface appeng.helpers.InterfaceLogicHost

    getBlockEntity, getConfig, getConfigManager, getPriority, getStorage, getUpgrades, saveChanges, setPriority

    Methods inherited from interface appeng.api.upgrades.IUpgradeableObject

    getInstalledUpgrades, isUpgradedWith

    Methods inherited from interface net.minecraft.world.Nameable

    getDisplayName, hasCustomName
  • Constructor Details

    • MEGAInterfaceBlockEntity

      public MEGAInterfaceBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState)
  • Method Details

    • createLogic

      protected appeng.helpers.InterfaceLogic createLogic()
      Overrides:
      createLogic in class appeng.blockentity.misc.InterfaceBlockEntity
    • openMenu

      public void openMenu(net.minecraft.world.entity.player.Player player, appeng.menu.locator.MenuHostLocator locator)
    • returnToMainMenu

      public void returnToMainMenu(net.minecraft.world.entity.player.Player player, appeng.menu.ISubMenu subMenu)
    • getMainMenuIcon

      public net.minecraft.world.item.ItemStack getMainMenuIcon()
      Specified by:
      getMainMenuIcon in interface appeng.api.storage.ISubMenuHost
      Overrides:
      getMainMenuIcon in class appeng.blockentity.misc.InterfaceBlockEntity