Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/09/20 in all areas

  1. About Suppliers...https://www.geeksforgeeks.org/supplier-interface-in-java-with-examples/
    2 points
  2. The constructor of ItemStack is looking for an Item, but you has passed in an Item Supplier. You need to use RegistryObject#get to get the Item from the supplier, for example RegistryObject<Item> MY_ITEM = ..... new ItemStack(MY_ITEM.get());
    1 point
  3. Alright, let's try another way: If you extend the BiomeGenerationSettings.Builder class, and add your own method that takes a structure supplier, i.e. something like this: public static class Builder extends BiomeGenerationSettings.Builder { public BiomeGenerationSettings.Builder withStructureSupplier(Supplier<StructureFeature<?, ?>> structure) { this.structures.add(structure); return this; } } and then use this builder to create your biome instead. Does that work?
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.