Class TerminalStorageIngredientSlotClickPacket<T>

java.lang.Object
org.cyclops.cyclopscore.network.PacketBase
org.cyclops.cyclopscore.network.PacketCodec
org.cyclops.integratedterminals.network.packet.TerminalStorageIngredientSlotClickPacket<T>

public class TerminalStorageIngredientSlotClickPacket<T> extends org.cyclops.cyclopscore.network.PacketCodec
Packet for sending a storage slot click event from client to server.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.cyclops.cyclopscore.network.PacketCodec

    org.cyclops.cyclopscore.network.PacketCodec.ICodecAction, org.cyclops.cyclopscore.network.PacketCodec.ICodecRunnable
  • Field Summary

    Fields inherited from class org.cyclops.cyclopscore.network.PacketCodec

    fieldCache, READ_STRING_MAX_LENGTH
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    TerminalStorageIngredientSlotClickPacket(String tabId, org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,?> component, TerminalClickType clickType, int channel, T hoveringStorageInstance, int hoveredContainerSlot, long moveQuantityPlayerSlot, T activeStorageInstance, boolean transferFullSelection)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    actionClient(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player)
     
    void
    actionServer(net.minecraft.world.level.Level world, net.minecraft.server.level.ServerPlayer player)
     
    int
     
     
    org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,?>
     
    boolean
     

    Methods inherited from class org.cyclops.cyclopscore.network.PacketCodec

    addCodedAction, decode, encode, getAction, getActionSuper, read, write

    Methods inherited from class java.lang.Object

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

    • TerminalStorageIngredientSlotClickPacket

      public TerminalStorageIngredientSlotClickPacket()
    • TerminalStorageIngredientSlotClickPacket

      public TerminalStorageIngredientSlotClickPacket(String tabId, org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,?> component, TerminalClickType clickType, int channel, T hoveringStorageInstance, int hoveredContainerSlot, long moveQuantityPlayerSlot, T activeStorageInstance, boolean transferFullSelection)
  • Method Details

    • 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
    • actionServer

      public void actionServer(net.minecraft.world.level.Level world, net.minecraft.server.level.ServerPlayer player)
      Specified by:
      actionServer in class org.cyclops.cyclopscore.network.PacketBase
    • getClickType

      public TerminalClickType getClickType()
    • getComponent

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

      public int getChannel()