Package gripe._90.megacells.item.part
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalDrops(List<net.minecraft.world.item.ItemStack> drops, boolean wrenched) voidgetBoxes(appeng.api.parts.IPartCollisionHelper bch) intappeng.blockentity.inventory.AppEngCellInventory@Nullable appeng.api.storage.MEStoragegetCellInventory(int slot) @Nullable net.minecraft.world.item.ItemgetCellItem(int slot) appeng.api.storage.cells.CellStategetCellStatus(int slot) net.minecraft.world.item.ItemStacknet.neoforged.neoforge.client.model.data.ModelData@Nullable appeng.api.storage.cells.StorageCellgetOriginalCellInventory(int slot) intappeng.api.parts.IPartModelbooleanisCellBlinking(int slot) voidmountInventories(appeng.api.storage.IStorageMounts storageMounts) voidonChangeInventory(appeng.util.inv.AppEngInternalInventory inv, int slot) protected voidonMainNodeStateChanged(appeng.api.networking.IGridNodeListener.State reason) voidonPlacement(net.minecraft.world.entity.player.Player player) booleanonUseItemOn(net.minecraft.world.item.ItemStack heldItem, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.Vec3 pos) booleanonUseWithoutItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.Vec3 pos) voidreadFromNBT(net.minecraft.nbt.CompoundTag data, net.minecraft.core.HolderLookup.Provider registries) booleanreadFromStream(net.minecraft.network.RegistryFriendlyByteBuf data) voidreadVisualStateFromNBT(net.minecraft.nbt.CompoundTag data) voidrenderDynamic(float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource buffers, int combinedLightIn, int combinedOverlayIn) booleanvoidreturnToMainMenu(net.minecraft.world.entity.player.Player player, appeng.menu.ISubMenu subMenu) voidsaveChangedInventory(appeng.util.inv.AppEngInternalInventory inv) voidsetPriority(int newValue) voidwriteToNBT(net.minecraft.nbt.CompoundTag data, net.minecraft.core.HolderLookup.Provider registries) voidwriteToStream(net.minecraft.network.RegistryFriendlyByteBuf data) voidwriteVisualStateToNBT(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, useStandardMemoryCardMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface appeng.api.networking.security.IActionHost
getActionableNodeMethods inherited from interface appeng.api.implementations.blockentities.IChestOrDrive
isPoweredMethods inherited from interface appeng.util.inv.InternalInventoryHost
isClientSideMethods inherited from interface appeng.api.parts.IPart
addPartDrop, animateTick, canBePlacedOn, canConnectRedstone, clearContent, getDesiredConnectionType, getExternalCableConnectionType, getExternalFacingNode, getLightLevel, isLadder, isProvidingStrongPower, isProvidingWeakPower, isSolid, onClicked, onEntityCollision, onNeighborChanged, onShiftClicked, onUpdateShapeMethods 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:
readFromNBTin interfaceappeng.api.parts.IPart- Overrides:
readFromNBTin classappeng.parts.AEBasePart
-
writeToNBT
public void writeToNBT(net.minecraft.nbt.CompoundTag data, net.minecraft.core.HolderLookup.Provider registries) - Specified by:
writeToNBTin interfaceappeng.api.parts.IPart- Overrides:
writeToNBTin classappeng.parts.AEBasePart
-
readFromStream
public boolean readFromStream(net.minecraft.network.RegistryFriendlyByteBuf data) - Specified by:
readFromStreamin interfaceappeng.api.parts.IPart- Overrides:
readFromStreamin classappeng.parts.AEBasePart
-
writeToStream
public void writeToStream(net.minecraft.network.RegistryFriendlyByteBuf data) - Specified by:
writeToStreamin interfaceappeng.api.parts.IPart- Overrides:
writeToStreamin classappeng.parts.AEBasePart
-
readVisualStateFromNBT
public void readVisualStateFromNBT(net.minecraft.nbt.CompoundTag data) - Specified by:
readVisualStateFromNBTin interfaceappeng.api.parts.IPart- Overrides:
readVisualStateFromNBTin classappeng.parts.AEBasePart
-
writeVisualStateToNBT
public void writeVisualStateToNBT(net.minecraft.nbt.CompoundTag data) - Specified by:
writeVisualStateToNBTin interfaceappeng.api.parts.IPart- Overrides:
writeVisualStateToNBTin classappeng.parts.AEBasePart
-
onMainNodeStateChanged
protected void onMainNodeStateChanged(appeng.api.networking.IGridNodeListener.State reason) - Overrides:
onMainNodeStateChangedin classappeng.parts.AEBasePart
-
onUseWithoutItem
public boolean onUseWithoutItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.Vec3 pos) - Specified by:
onUseWithoutItemin interfaceappeng.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:
onUseItemOnin interfaceappeng.api.parts.IPart- Overrides:
onUseItemOnin classappeng.parts.AEBasePart
-
onPlacement
public void onPlacement(net.minecraft.world.entity.player.Player player) - Specified by:
onPlacementin interfaceappeng.api.parts.IPart- Overrides:
onPlacementin classappeng.parts.AEBasePart
-
getMainMenuIcon
public net.minecraft.world.item.ItemStack getMainMenuIcon()- Specified by:
getMainMenuIconin interfaceappeng.api.storage.ISubMenuHost
-
addAdditionalDrops
- Specified by:
addAdditionalDropsin interfaceappeng.api.parts.IPart
-
getCellInventory
public appeng.blockentity.inventory.AppEngCellInventory getCellInventory() -
getCellCount
public int getCellCount()- Specified by:
getCellCountin interfaceappeng.api.implementations.blockentities.IChestOrDrive
-
isCellBlinking
public boolean isCellBlinking(int slot) - Specified by:
isCellBlinkingin interfaceappeng.api.implementations.blockentities.IChestOrDrive
-
getCellItem
@Nullable public @Nullable net.minecraft.world.item.Item getCellItem(int slot) - Specified by:
getCellItemin interfaceappeng.api.implementations.blockentities.IChestOrDrive
-
getCellInventory
@Nullable public @Nullable appeng.api.storage.MEStorage getCellInventory(int slot) - Specified by:
getCellInventoryin interfaceappeng.api.implementations.blockentities.IChestOrDrive
-
getOriginalCellInventory
@Nullable public @Nullable appeng.api.storage.cells.StorageCell getOriginalCellInventory(int slot) - Specified by:
getOriginalCellInventoryin interfaceappeng.api.implementations.blockentities.IChestOrDrive
-
getCellStatus
public appeng.api.storage.cells.CellState getCellStatus(int slot) - Specified by:
getCellStatusin interfaceappeng.api.implementations.blockentities.IChestOrDrive
-
mountInventories
public void mountInventories(appeng.api.storage.IStorageMounts storageMounts) - Specified by:
mountInventoriesin interfaceappeng.api.storage.IStorageProvider
-
saveChangedInventory
public void saveChangedInventory(appeng.util.inv.AppEngInternalInventory inv) - Specified by:
saveChangedInventoryin interfaceappeng.util.inv.InternalInventoryHost
-
onChangeInventory
public void onChangeInventory(appeng.util.inv.AppEngInternalInventory inv, int slot) - Specified by:
onChangeInventoryin interfaceappeng.util.inv.InternalInventoryHost
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceappeng.helpers.IPriorityHost
-
setPriority
public void setPriority(int newValue) - Specified by:
setPriorityin interfaceappeng.helpers.IPriorityHost
-
getStaticModels
public appeng.api.parts.IPartModel getStaticModels()- Specified by:
getStaticModelsin interfaceappeng.api.parts.IPart
-
getBoxes
public void getBoxes(appeng.api.parts.IPartCollisionHelper bch) - Specified by:
getBoxesin interfaceappeng.api.parts.IPart
-
requireDynamicRender
public boolean requireDynamicRender()- Specified by:
requireDynamicRenderin interfaceappeng.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:
renderDynamicin interfaceappeng.api.parts.IPart
-
getModelData
public net.neoforged.neoforge.client.model.data.ModelData getModelData()- Specified by:
getModelDatain interfaceappeng.api.parts.IPart
-