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.PacketTypeProviderNested 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 -
Constructor Summary
ConstructorsConstructorDescriptionShootGadgetPacket(net.minecraft.world.phys.Vec3 location, net.minecraft.world.InteractionHand hand, boolean self) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ShootableGadgetRenderHandlervoidhandle(net.minecraft.client.player.LocalPlayer player) protected abstract voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.createmod.catnip.net.base.BasePacketPayload
getTypeProvider, typeMethods inherited from interface net.createmod.catnip.net.base.ClientboundPacketPayload
handleInternalMethods 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
-
handle
public void handle(net.minecraft.client.player.LocalPlayer player) - Specified by:
handlein interfacenet.createmod.catnip.net.base.ClientboundPacketPayload
-