compileJava Error due to incompatible types

Started by OrionPlays24 on

Topic category: Troubleshooting, bugs, and solutions

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
compileJava Error due to incompatible types

Sorry if this has already been posted before! I haven't see any info on this

 

The error I am getting is:

error: incompatible types: ItemPropertyFunction cannot be converted to ClampedItemPropertyFunction

  ItemProperties.register(item, new ResourceLocation("blocking"), ItemProperties.getProperty(Items.SHIELD, new ResourceLocation("blocking")));

error: incompatible types: Item cannot be converted to MobEffect

  HAPPY = register("happy", new HappyJuiceMobEffect());

error: incompatible types: inference variable T has incompatible bounds

  return Registry.register(BuiltInRegistries.MOB_EFFECT, new ResourceLocation(OmorcraftMod.MODID, registryName), element);

 

Sorry if it's a repost, but I don't understand how to fix this.

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thx for the help! sorry for…
Fri, 03/22/2024 - 02:42

Thx for the help! sorry for the post I should have done some more research