i am new to forge, i m making a mod, it needs to know if player is in end dimension, i used this code
public void playerlocation (){
if (player.worldObj.provider.dimensionId = 1) {
}
but it highlights the player as red color, what am i missing
my full code + its in a new java class
package com.example;
import net.minecraft.entity.Entity;
import net.minecraft.entity.*;
public class Listeners {
public void playerlocation (){
if (player.worldObj.provider.dimensionId = 1) {
}
}