I put the @Override method in my item class, but it did not work. I implemented it like this:
package com.thatguydavid09.glasses.items;
import com.thatguydavid09.glasses.Glasses;
import net.minecraft.entity.monster.EndermanEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class SunglassItemBase extends Item {
public SunglassItemBase() {
super(new Item.Properties().group(Glasses.TAB));
}
@Override
public boolean isEnderMask(ItemStack stack, PlayerEntity player, EndermanEntity endermanEntity)
{
return true;
}
}
and registered it like this:
public static final RegistryObject<Item> SUNGLASS_LENS = ITEMS.register("sunglass_lens", SunglassItemBase::new);
Did I do something wrong?