Error Map<Location, BlockData> blocks

Discussion in 'Plugin Development' started by loleh, Jan 16, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    loleh

    Hello, do you know what this code is about? all is ok only this one error


    public class GuildRegenerateTask extends BukkitRunnable
    {
    private final Map<Location, BlockData> blocks;
    private int progressNow;
    private final int progressMax;
    private final Guild guild;

    public GuildRegenerateTask(final Guild guild, final Map<Location, BlockData> blocks) {
    this.progressNow = 1;
    this.guild = guild;
    this.progressMax = blocks.size();
    this.blocks =
    blocks.entrySet().stream().sorted((Comparator<? super Object>)Collections.reverseOrder((Comparator<? super T>)Map.Entry.comparingByValue((Comparator<? super Object>)new BlockComparator()))).collect((Collector<? super Object, ?, Map<Location, BlockData>>)Collectors.toMap((Function<? super Object, ?>)Map.Entry::getKey, (Function<? super Object, ?>)Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));

    https://i.imgur.com/lZseUMw.png
     

    Attached Files:

  2. Offline

    CraftCreeper6

    @loleh
    What is the error?
     
  3. Offline

    loleh

  4. Online

    timtower Administrator Administrator Moderator

    @loleh And where did you get that?
     
  5. Offline

    loleh

  6. Online

    timtower Administrator Administrator Moderator

    Decompiled?
     
  7. Offline

    loleh

  8. Online

    timtower Administrator Administrator Moderator

    Link to the plugin and reason that you are recompiling it?
     
  9. Offline

    loleh

    @timtower

    reason: connecting this plugin to my main
     
  10. Online

    timtower Administrator Administrator Moderator

    @loleh I don't see a download link there though.
    And connecting to your main? In what way?
     
  11. Offline

    Strahan

    If you want regeneration and can't get that to work, try Core Protect. It's a great anti griefing/regeneration plugin.
     
Thread Status:
Not open for further replies.

Share This Page