Class TerminalStorageIngredientCraftingOptionDataPacketAbstract<T,M,L>

java.lang.Object
org.cyclops.cyclopscore.network.PacketBase
org.cyclops.cyclopscore.network.PacketCodec
org.cyclops.integratedterminals.network.packet.TerminalStorageIngredientCraftingOptionDataPacketAbstract<T,M,L>
Direct Known Subclasses:
TerminalStorageIngredientOpenCraftingJobAmountGuiPacket, TerminalStorageIngredientOpenCraftingPlanGuiPacket

public abstract class TerminalStorageIngredientCraftingOptionDataPacketAbstract<T,M,L> extends org.cyclops.cyclopscore.network.PacketCodec
Packet for sending a storage slot click event from client to server.
  • Constructor Details

    • TerminalStorageIngredientCraftingOptionDataPacketAbstract

      public TerminalStorageIngredientCraftingOptionDataPacketAbstract()
    • TerminalStorageIngredientCraftingOptionDataPacketAbstract

      public TerminalStorageIngredientCraftingOptionDataPacketAbstract(CraftingOptionGuiData<T,M,L> craftingOptionData)
  • Method Details

    • encode

      public void encode(net.minecraft.network.FriendlyByteBuf output)
      Overrides:
      encode in class org.cyclops.cyclopscore.network.PacketCodec
    • decode

      public void decode(net.minecraft.network.FriendlyByteBuf input)
      Overrides:
      decode in class org.cyclops.cyclopscore.network.PacketCodec
    • isAsync

      public boolean isAsync()
      Specified by:
      isAsync in class org.cyclops.cyclopscore.network.PacketBase
    • actionClient

      public void actionClient(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player)
      Specified by:
      actionClient in class org.cyclops.cyclopscore.network.PacketBase
    • getCraftingOption

      @Nullable protected HandlerWrappedTerminalCraftingOption<T> getCraftingOption(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> ingredientComponent)
    • getCraftingPlan

      @Nullable protected HandlerWrappedTerminalCraftingPlan getCraftingPlan()
    • getIngredientComponent

      public org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> getIngredientComponent()
    • getChannel

      public int getChannel()
    • getTabName

      public String getTabName()
    • getAmount

      public int getAmount()
    • getCraftingOptionData

      public CraftingOptionGuiData<T,M,L> getCraftingOptionData()