mirror of
https://github.com/GeyserExtensionists/GeyserModelEngine.git
synced 2025-12-19 23:19:19 +00:00
22 lines
568 B
Java
22 lines
568 B
Java
package re.imc.geysermodelengine.packet;
|
|
|
|
import com.comphenix.protocol.PacketType;
|
|
import com.comphenix.protocol.events.PacketContainer;
|
|
|
|
public class EntityHurtAnimationPacket implements WrapperPacket {
|
|
|
|
private final int id;
|
|
|
|
public EntityHurtAnimationPacket(int id) {
|
|
this.id = id;
|
|
}
|
|
|
|
@Override
|
|
public PacketContainer encode() {
|
|
PacketContainer packet = new PacketContainer(PacketType.Play.Server.HURT_ANIMATION);
|
|
packet.getIntegers().write(0, id);
|
|
packet.getFloat().write(0, 1f);
|
|
return packet;
|
|
}
|
|
}
|