Search in sources :

Example 1 with BukkitMCPattern

use of com.laytonsmith.abstraction.bukkit.BukkitMCPattern in project CommandHelper by EngineHub.

the class BukkitMCBanner method getPatterns.

@Override
public List<MCPattern> getPatterns() {
    List<Pattern> bukkitPatterns = b.getPatterns();
    List<MCPattern> patterns = new ArrayList<>(bukkitPatterns.size());
    for (Pattern p : bukkitPatterns) {
        patterns.add(new BukkitMCPattern(p));
    }
    return patterns;
}
Also used : BukkitMCPattern(com.laytonsmith.abstraction.bukkit.BukkitMCPattern) MCPattern(com.laytonsmith.abstraction.MCPattern) BukkitMCPattern(com.laytonsmith.abstraction.bukkit.BukkitMCPattern) Pattern(org.bukkit.block.banner.Pattern) ArrayList(java.util.ArrayList) MCPattern(com.laytonsmith.abstraction.MCPattern) BukkitMCPattern(com.laytonsmith.abstraction.bukkit.BukkitMCPattern)

Aggregations

MCPattern (com.laytonsmith.abstraction.MCPattern)1 BukkitMCPattern (com.laytonsmith.abstraction.bukkit.BukkitMCPattern)1 ArrayList (java.util.ArrayList)1 Pattern (org.bukkit.block.banner.Pattern)1