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.
-
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
ConstructorsConstructorDescriptionTerminalStorageIngredientCraftingOptionDataPacketAbstract(CraftingOptionGuiData<T, M, L> craftingOptionData) -
Method Summary
Modifier and TypeMethodDescriptionvoidactionClient(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player) voiddecode(net.minecraft.network.FriendlyByteBuf input) voidencode(net.minecraft.network.FriendlyByteBuf output) intintprotected HandlerWrappedTerminalCraftingOption<T>getCraftingOption(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T, M> ingredientComponent) protected HandlerWrappedTerminalCraftingPlanbooleanisAsync()Methods inherited from class org.cyclops.cyclopscore.network.PacketCodec
addCodedAction, getAction, getActionSuper, read, writeMethods inherited from class org.cyclops.cyclopscore.network.PacketBase
actionServer
-
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:
encodein classorg.cyclops.cyclopscore.network.PacketCodec
-
decode
public void decode(net.minecraft.network.FriendlyByteBuf input) - Overrides:
decodein classorg.cyclops.cyclopscore.network.PacketCodec
-
isAsync
public boolean isAsync()- Specified by:
isAsyncin classorg.cyclops.cyclopscore.network.PacketBase
-
actionClient
public void actionClient(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player) - Specified by:
actionClientin classorg.cyclops.cyclopscore.network.PacketBase
-
getCraftingOption
@Nullable protected HandlerWrappedTerminalCraftingOption<T> getCraftingOption(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T, M> ingredientComponent) -
getCraftingPlan
-
getIngredientComponent
-
getChannel
public int getChannel() -
getTabName
-
getAmount
public int getAmount() -
getCraftingOptionData
-