package no.stelar7.api.l4j8.basic.constants.types;

import java.util.*;
import java.util.stream.*;

public enum TeamType implements CodedEnum
{
    
    BLUE(100),
    RED(200);
    
    private final Integer code;
    
    TeamType(final int code)
    {
        this.code = code;
    }
    
    public Optional<TeamType> getFromCode(final String teamId)
    {
        return Stream.of(TeamType.values()).filter(t -> t.code.equals(Integer.valueOf(teamId))).findFirst();
    }
    
    public Integer getValue()
    {
        return this.code;
    }
}

@@ -169,16 +169,29 @@
 RED(200)
+,%0A    AI(300)
 ;%0A    %0A 

Add AI team (only found in cdragon atm)