Class LogicProgrammerDecodeValueChangedPacket
java.lang.Object
org.cyclops.cyclopscore.network.PacketBase
org.cyclops.cyclopscore.network.PacketCodec
org.cyclops.integrateddynamics.network.packet.LogicProgrammerDecodeValueChangedPacket
- All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
public class LogicProgrammerDecodeValueChangedPacket
extends org.cyclops.cyclopscore.network.PacketCodec
Packet for sending a pasted encoded value to the decode element of the logic programmer.
The value is sent as a tag instead of a string,
as encoded values can easily exceed the maximum length of a string on the network.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.cyclopscore.network.PacketCodec
org.cyclops.cyclopscore.network.PacketCodec.ICodecActionNested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B,T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, LogicProgrammerDecodeValueChangedPacket> static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<LogicProgrammerDecodeValueChangedPacket> Fields inherited from class org.cyclops.cyclopscore.network.PacketCodec
fieldCache -
Constructor Summary
ConstructorsConstructorDescriptionLogicProgrammerDecodeValueChangedPacket(net.minecraft.nbt.CompoundTag value) -
Method Summary
Modifier and TypeMethodDescriptionvoidactionClient(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player) voidactionServer(net.minecraft.world.level.Level world, net.minecraft.server.level.ServerPlayer player) booleanisAsync()Methods inherited from class org.cyclops.cyclopscore.network.PacketCodec
decode, encodeMethods inherited from class org.cyclops.cyclopscore.network.PacketBase
getCodec, type, writeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
toVanillaClientbound, toVanillaServerbound
-
Field Details
-
ID
public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<LogicProgrammerDecodeValueChangedPacket> ID -
CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, LogicProgrammerDecodeValueChangedPacket> CODEC
-
-
Constructor Details
-
LogicProgrammerDecodeValueChangedPacket
public LogicProgrammerDecodeValueChangedPacket() -
LogicProgrammerDecodeValueChangedPacket
public LogicProgrammerDecodeValueChangedPacket(net.minecraft.nbt.CompoundTag value)
-
-
Method Details
-
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
-
actionServer
public void actionServer(net.minecraft.world.level.Level world, net.minecraft.server.level.ServerPlayer player) - Specified by:
actionServerin classorg.cyclops.cyclopscore.network.PacketBase
-