Class ContainerTerminalCraftingJobsPlan

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
org.cyclops.cyclopscore.inventory.container.ContainerExtended
org.cyclops.cyclopscore.inventory.container.InventoryContainer
org.cyclops.integrateddynamics.core.inventory.container.ContainerMultipart<PartTypeTerminalCraftingJob,org.cyclops.integrateddynamics.core.part.PartStateEmpty<PartTypeTerminalCraftingJob>>
org.cyclops.integratedterminals.inventory.container.ContainerTerminalCraftingJobsPlan
All Implemented Interfaces:
org.cyclops.cyclopscore.inventory.container.button.IContainerButtonClickAcceptorServer<org.cyclops.cyclopscore.inventory.container.ContainerExtended>, org.cyclops.cyclopscore.inventory.IValueNotifiable, org.cyclops.cyclopscore.inventory.IValueNotifier, org.cyclops.cyclopscore.persist.IDirtyMarkListener

public class ContainerTerminalCraftingJobsPlan extends org.cyclops.integrateddynamics.core.inventory.container.ContainerMultipart<PartTypeTerminalCraftingJob,org.cyclops.integrateddynamics.core.part.PartStateEmpty<PartTypeTerminalCraftingJob>>
A container for visualizing a live crafting plan.
  • Field Summary

    Fields inherited from class org.cyclops.integrateddynamics.core.inventory.container.ContainerMultipart

    BUTTON_SETTINGS

    Fields inherited from class org.cyclops.cyclopscore.inventory.container.InventoryContainer

    inventory

    Fields inherited from class org.cyclops.cyclopscore.inventory.container.ContainerExtended

    ITEMBOX, offsetX, offsetY, player

    Fields inherited from class net.minecraft.world.inventory.AbstractContainerMenu

    CARRIED_SLOT_SIZE, containerId, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, slots
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContainerTerminalCraftingJobsPlan(int id, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.FriendlyByteBuf packetBuffer)
     
    ContainerTerminalCraftingJobsPlan(int id, net.minecraft.world.entity.player.Inventory playerInventory, org.cyclops.integrateddynamics.api.part.PartTarget target, Optional<org.cyclops.integrateddynamics.api.part.IPartContainer> partContainer, PartTypeTerminalCraftingJob partType, CraftingJobGuiData craftingJobGuiData)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
     
    int
     
    protected int
     
    void
    onUpdate(int valueId, net.minecraft.nbt.CompoundTag value)
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player playerIn)
     
    protected void
     

    Methods inherited from class org.cyclops.integrateddynamics.core.inventory.container.ContainerMultipart

    getLevel, getPartContainer, getPartState, getPartType, getTarget, onDirty

    Methods inherited from class org.cyclops.cyclopscore.inventory.container.InventoryContainer

    getContainerInventory, isAssertInventorySize, removed

    Methods inherited from class org.cyclops.cyclopscore.inventory.container.ContainerExtended

    addInventory, addPlayerArmorInventory, addPlayerInventory, addSlot, addSlotListener, adjustPhantomSlot, clicked, createNewSlot, fillPhantomSlot, getNextValueId, getPlayerIInventory, getSlotRange, getSlotStart, getValue, getValueIds, getValueNotifiableType, initializeValues, moveItemStackTo, onButtonClick, putButtonAction, quickMoveStack, registerSyncedVariable, resetQuickCraft, setGuiValueListener, setSlotPosX, setSlotPosY, setValue

    Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu

    addDataSlot, addDataSlots, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, removeSlotListener, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ContainerTerminalCraftingJobsPlan

      public ContainerTerminalCraftingJobsPlan(int id, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.FriendlyByteBuf packetBuffer)
    • ContainerTerminalCraftingJobsPlan

      public ContainerTerminalCraftingJobsPlan(int id, net.minecraft.world.entity.player.Inventory playerInventory, org.cyclops.integrateddynamics.api.part.PartTarget target, Optional<org.cyclops.integrateddynamics.api.part.IPartContainer> partContainer, PartTypeTerminalCraftingJob partType, CraftingJobGuiData craftingJobGuiData)
  • Method Details

    • getCraftingJobGuiData

      public CraftingJobGuiData getCraftingJobGuiData()
    • getCraftingPlan

      public Optional<ITerminalCraftingPlan> getCraftingPlan()
    • broadcastChanges

      public void broadcastChanges()
      Overrides:
      broadcastChanges in class org.cyclops.cyclopscore.inventory.container.ContainerExtended
    • getCraftingPlanNotifierId

      public int getCraftingPlanNotifierId()
    • updateCraftingPlan

      protected void updateCraftingPlan()
    • getSizeInventory

      protected int getSizeInventory()
      Overrides:
      getSizeInventory in class org.cyclops.cyclopscore.inventory.container.InventoryContainer
    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player playerIn)
      Overrides:
      stillValid in class org.cyclops.integrateddynamics.core.inventory.container.ContainerMultipart<PartTypeTerminalCraftingJob,org.cyclops.integrateddynamics.core.part.PartStateEmpty<PartTypeTerminalCraftingJob>>
    • onUpdate

      public void onUpdate(int valueId, net.minecraft.nbt.CompoundTag value)
      Specified by:
      onUpdate in interface org.cyclops.cyclopscore.inventory.IValueNotifiable
      Overrides:
      onUpdate in class org.cyclops.cyclopscore.inventory.container.ContainerExtended