Class ClientboundProjectilePowerPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.ClientboundProjectilePowerPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundProjectilePowerPacket(int id, double accelerationPower) ClientboundProjectilePowerPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleandoubleintgetId()inthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundProjectilePowerPacketwithAccelerationPower(double accelerationPower) @NonNull ClientboundProjectilePowerPacketwithId(int id) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundProjectilePowerPacket
public ClientboundProjectilePowerPacket(io.netty.buffer.ByteBuf in) -
ClientboundProjectilePowerPacket
public ClientboundProjectilePowerPacket(int id, double accelerationPower)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getId
public int getId() -
getAccelerationPower
public double getAccelerationPower() -
equals
-
canEqual
-
hashCode
-
toString
-
withId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAccelerationPower
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-