Class ConfigureZapperPacket

java.lang.Object
com.simibubi.create.content.equipment.zapper.ConfigureZapperPacket
All Implemented Interfaces:
net.createmod.catnip.net.base.BasePacketPayload, net.createmod.catnip.net.base.ServerboundPacketPayload, net.minecraft.network.protocol.common.custom.CustomPacketPayload
Direct Known Subclasses:
ConfigureWorldshaperPacket

public abstract class ConfigureZapperPacket extends Object implements net.createmod.catnip.net.base.ServerboundPacketPayload
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.createmod.catnip.net.base.BasePacketPayload

    net.createmod.catnip.net.base.BasePacketPayload.PacketTypeProvider

    Nested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload

    net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B extends net.minecraft.network.FriendlyByteBuf>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B extends net.minecraft.network.FriendlyByteBuf,T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraft.world.InteractionHand
     
    protected final PlacementPatterns
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConfigureZapperPacket(net.minecraft.world.InteractionHand hand, PlacementPatterns pattern)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    configureZapper(net.minecraft.world.item.ItemStack stack)
     
    void
    handle(net.minecraft.server.level.ServerPlayer player)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.createmod.catnip.net.base.BasePacketPayload

    getTypeProvider, type

    Methods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload

    toVanillaClientbound, toVanillaServerbound
  • Field Details

    • hand

      protected final net.minecraft.world.InteractionHand hand
    • pattern

      protected final PlacementPatterns pattern
  • Constructor Details

    • ConfigureZapperPacket

      public ConfigureZapperPacket(net.minecraft.world.InteractionHand hand, PlacementPatterns pattern)
  • Method Details

    • handle

      public void handle(net.minecraft.server.level.ServerPlayer player)
      Specified by:
      handle in interface net.createmod.catnip.net.base.ServerboundPacketPayload
    • configureZapper

      public abstract void configureZapper(net.minecraft.world.item.ItemStack stack)