openrune: PlayerAppearenceChanged -> PlayerChanged

This commit is contained in:
therealunull
2020-12-13 12:58:47 -05:00
parent 72967966a3
commit 11a239e94e
3 changed files with 5 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ import javax.annotation.Nullable;
import net.runelite.api.annotations.VisibleForExternalPlugins; import net.runelite.api.annotations.VisibleForExternalPlugins;
import net.runelite.api.coords.LocalPoint; import net.runelite.api.coords.LocalPoint;
import net.runelite.api.coords.WorldPoint; import net.runelite.api.coords.WorldPoint;
import net.runelite.api.events.PlayerAppearanceChanged; import net.runelite.api.events.PlayerChanged;
import net.runelite.api.hooks.Callbacks; import net.runelite.api.hooks.Callbacks;
import net.runelite.api.hooks.DrawCallbacks; import net.runelite.api.hooks.DrawCallbacks;
import net.runelite.api.vars.AccountType; import net.runelite.api.vars.AccountType;
@@ -2037,7 +2037,7 @@ public interface Client extends GameShell
/** /**
* Setting this to true will allow the client to compare * Setting this to true will allow the client to compare
* player appearance hashes and dispatch when one changes * player appearance hashes and dispatch when one changes
* via the {@link PlayerAppearanceChanged} event. * via the {@link PlayerChanged} event.
* <p> * <p>
* WARNING - THIS METHOD IS CPU-INTENSE. * WARNING - THIS METHOD IS CPU-INTENSE.
*/ */

View File

@@ -7,7 +7,7 @@ import net.runelite.api.Player;
* This will fire whenever the {@link net.runelite.api.PlayerAppearance} hash changes. * This will fire whenever the {@link net.runelite.api.PlayerAppearance} hash changes.
*/ */
@Value @Value
public class PlayerAppearanceChanged implements Event public class PlayerChanged implements Event
{ {
Player player; Player player;
} }

View File

@@ -45,7 +45,7 @@ import static net.runelite.api.SkullIcon.DEAD_MAN_TWO;
import static net.runelite.api.SkullIcon.SKULL; import static net.runelite.api.SkullIcon.SKULL;
import static net.runelite.api.SkullIcon.SKULL_FIGHT_PIT; import static net.runelite.api.SkullIcon.SKULL_FIGHT_PIT;
import net.runelite.api.coords.LocalPoint; import net.runelite.api.coords.LocalPoint;
import net.runelite.api.events.PlayerAppearanceChanged; import net.runelite.api.events.PlayerChanged;
import net.runelite.api.events.player.headicon.OverheadPrayerChanged; import net.runelite.api.events.player.headicon.OverheadPrayerChanged;
import net.runelite.api.events.player.headicon.PlayerSkullChanged; import net.runelite.api.events.player.headicon.PlayerSkullChanged;
import net.runelite.api.mixins.Copy; import net.runelite.api.mixins.Copy;
@@ -299,7 +299,7 @@ public abstract class RSPlayerMixin implements RSPlayer
if (client.isComparingAppearance() && getPlayerAppearance().getHash() != appearanceHash) if (client.isComparingAppearance() && getPlayerAppearance().getHash() != appearanceHash)
{ {
client.getCallbacks().post(PlayerAppearanceChanged.class, new PlayerAppearanceChanged(this)); client.getCallbacks().post(PlayerChanged.class, new PlayerChanged(this));
} }
} }
} }