Class ClientboundProjectilePowerPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundProjectilePowerPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundProjectilePowerPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleprivate final intstatic final StreamCodec<FriendlyByteBuf, ClientboundProjectilePowerPacket> -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundProjectilePowerPacket(int pId, double pAccelerationPower) private -
Method Summary
Modifier and TypeMethodDescriptiondoubleintgetId()voidhandle(ClientGamePacketListener p_339610_) Passes this Packet on to the PacketListener for processing.type()private voidwrite(FriendlyByteBuf pBuffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
id
private final int id -
accelerationPower
private final double accelerationPower
-
-
Constructor Details
-
ClientboundProjectilePowerPacket
public ClientboundProjectilePowerPacket(int pId, double pAccelerationPower) -
ClientboundProjectilePowerPacket
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
Description copied from interface:PacketPasses this Packet on to the PacketListener for processing.- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getId
public int getId() -
getAccelerationPower
public double getAccelerationPower()
-