9
0
mirror of https://github.com/HibiscusMC/HibiscusCommons.git synced 2025-12-19 15:09:26 +00:00

Added scale change listener

This commit is contained in:
OakLoaf
2025-07-05 18:43:33 +01:00
parent 2b113ee336
commit 9f824031c5
3 changed files with 44 additions and 0 deletions

View File

@@ -37,6 +37,11 @@ public interface PacketInterface {
// Override
}
default PacketAction readPlayerScale(@NotNull Player player, @NotNull PlayerScaleWrapper wrapper) {
return PacketAction.NOTHING;
// Override
}
default PacketAction readEntityHandle(@NotNull Player player, @NotNull PlayerInteractWrapper wrapper) {
return PacketAction.NOTHING;
// Override

View File

@@ -0,0 +1,13 @@
package me.lojosho.hibiscuscommons.packets.wrapper;
import lombok.Getter;
public class PlayerScaleWrapper {
@Getter
private final double scale;
public PlayerScaleWrapper(double scale) {
this.scale = scale;
}
}