package me.time6628.clag.sponge.config;

import ninja.leaping.configurate.objectmapping.Setting;
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
import org.spongepowered.api.block.BlockTypes;
import org.spongepowered.api.entity.EntityTypes;
import org.spongepowered.api.item.ItemTypes;

import java.util.ArrayList;
import java.util.List;

@ConfigSerializable
public class CCLConfig {

    @Setting("Interval")
    public final int interval = 10;

    @Setting(value = "Warnings")
    public final List<Integer> warnings = new ArrayList<Integer>() {{
        add(540);
        add(570);
    }};

    @Setting("Whitelist")
    public final List<String> whitelist = new ArrayList<String>() {{
        add(ItemTypes.DIAMOND.getId());
        add(BlockTypes.DIAMOND_BLOCK.getId());
        add(BlockTypes.BEACON.getDefaultState().getId());
    }};

    @Setting("Entity Whitelist")
    public final List<String> entityWhiteList = new ArrayList<String>(){{add(EntityTypes.BOAT.getId());}};

    @Setting("Limits")
    public final
    Limits limits = new Limits();

    @ConfigSerializable
    public static class Limits {

        @Setting("Max Mobs Per Chunk")
        public final int mobLimitPerChunk = 20;

        @Setting("Hostile Limit")
        public final int hostileLimit = 500;

        @Setting("Entity Check Interval")
        public final int entityCheckInterval = 5;

        @Setting("XP Orb Limit")
        public final int maxXPOrbs = 300;
    }

}
@@ -359,16 +359,53 @@
 il.List;
+%0Aimport java.util.function.Predicate;
 %0A%0A@Confi
@@ -476,30 +476,24 @@
 %0A    public 
-final 
 int interval
@@ -540,30 +540,24 @@
 %0A    public 
-final 
 List%3CInteger
@@ -671,38 +671,32 @@
 st%22)%0A    public 
-final 
 List%3CString%3E whi
@@ -929,22 +929,16 @@
  public 
-final 
 List%3CStr
@@ -1058,18 +1058,8 @@
 lic 
-final%0A    
 Limi
@@ -1193,30 +1193,24 @@
      public 
-final 
 int mobLimit
@@ -1270,30 +1270,24 @@
      public 
-final 
 int hostileL
@@ -1352,30 +1352,24 @@
      public 
-final 
 int entityCh
@@ -1438,14 +1438,8 @@
 lic 
-final 
 int 

fix config