made all methods
package com.matt.forgehax.util.entity;
import com.matt.forgehax.Globals;
+import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import static com.matt.forgehax.Helper.getLocalPlayer;
public class PlayerUtils implements Globals {
- public static boolean isLocalPlayer(EntityPlayer player) {
+ /**
+ * Use EntityUtils::isLocalPlayer
+ */
+ @Deprecated
+ public static boolean isLocalPlayer(Entity player) {
EntityPlayer localPlayer = getLocalPlayer();
return localPlayer != null && localPlayer.equals(player);
}
+ @Deprecated
public static boolean isFriend(EntityPlayer player) {
return false;
}
