I'm working in my RegistryEvents.java, trying to register an item called sap_bucket using this declaration in the event.getRegistry().registerAll() line of registerItems with this declaration:
ItemList.sap_bucket = new BucketItem(() -> FluidList.sap, new Item.Properties().group(ItemGroup.MISC).maxStackSize(1)).setRegistryName("sap_bucket")
However, Eclipse is saying that the constructor BucketItem(() -> {}, Item.Properties) is undefined.
Similarly, I'm trying to register the sap block called sapt using this declaration in the event.getRegistry().registerAll() line of registerBlocks with this declaration:
BlockList.sap = new FlowingFluidBlock(() -> FluidList.sap, new Block.Properties.create(Material.WATER).doesNotBlockMovement().noDrops()).setRegistryName(location("sap"))
but Eclipse says that it can't resolve Block.Properties.create to a type. For some reason. It's a method, but Eclipse isn't recognizing it as such. Weird.
Does anyone know how to fix this? (And is it a problem that I'm using Java 8?)