Class ShootGadgetPacket

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

public abstract class ShootGadgetPacket extends Object implements net.createmod.catnip.net.base.ClientboundPacketPayload
  • 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 net.minecraft.world.phys.Vec3
     
    protected final boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ShootGadgetPacket(net.minecraft.world.phys.Vec3 location, net.minecraft.world.InteractionHand hand, boolean self)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract ShootableGadgetRenderHandler
     
    void
    handle(net.minecraft.client.player.LocalPlayer player)
     
    protected abstract void
     

    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.createmod.catnip.net.base.ClientboundPacketPayload

    handleInternal

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

    toVanillaClientbound, toVanillaServerbound
  • Field Details

    • location

      protected final net.minecraft.world.phys.Vec3 location
    • hand

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

      protected final boolean self
  • Constructor Details

    • ShootGadgetPacket

      public ShootGadgetPacket(net.minecraft.world.phys.Vec3 location, net.minecraft.world.InteractionHand hand, boolean self)
  • Method Details

    • handleAdditional

      protected abstract void handleAdditional()
    • getHandler

      protected abstract ShootableGadgetRenderHandler getHandler()
    • handle

      public void handle(net.minecraft.client.player.LocalPlayer player)
      Specified by:
      handle in interface net.createmod.catnip.net.base.ClientboundPacketPayload