Class PacketToggleArmorFeature

java.lang.Object
me.desht.pneumaticcraft.common.network.PacketToggleArmorFeature

public class PacketToggleArmorFeature extends Object
Received on: BOTH Sent by client to switch an armor module on or off Sent by server to initiate the process on the client (client will send this packet back in response if the module was actually changed)
  • Constructor Details

    • PacketToggleArmorFeature

      public PacketToggleArmorFeature(net.minecraft.world.entity.EquipmentSlot slot, byte featureIndex, boolean state)
  • Method Details

    • toBytes

      public void toBytes(net.minecraft.network.FriendlyByteBuf buf)
    • handle

      public void handle(Supplier<net.minecraftforge.network.NetworkEvent.Context> ctx)