mirror of
https://github.com/GeyserExtensionists/GeyserUtils.git
synced 2025-12-19 14:59:18 +00:00
custom hit box
This commit is contained in:
@@ -59,4 +59,10 @@ public class PlayerUtils {
|
||||
player.sendPluginMessage(GeyserUtils.getInstance(), GeyserUtilsChannels.MAIN, GeyserUtils.getPacketManager().encodePacket(skinPayloadPacket));
|
||||
|
||||
}
|
||||
|
||||
public static void sendCustomHitBox(Player player, Entity entity, float height, float width) {
|
||||
CustomHitBoxPacket packet = new CustomHitBoxPacket(entity.getEntityId(), height, width);
|
||||
player.sendPluginMessage(GeyserUtils.getInstance(), GeyserUtilsChannels.MAIN, GeyserUtils.getPacketManager().encodePacket(packet));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user