I am getting into basic mods and as a test I wanted an item that upon left click, it would randomize the players FoV. The item would not be able to break blocks. I haven't found a way to set those properties yet. The only method I could find would be .canItemEditBlocks(). There doesn't seem to be a setter to change the boolean though. Can anyone help?
Current code:
fovStick = new Item()
.setUnlocalizedName("fovStick")
.setCreativeTab(CreativeTabs.tabMisc)
.setTextureName(RefStrings.MODID + ":fovStick")
.setMaxStackSize(1);