package org.monospark.actioncontrol.matcher.entity;

import org.monospark.actioncontrol.matcher.Matcher;
import org.spongepowered.api.entity.Entity;
import org.spongepowered.api.entity.EntityType;

public final class EntityKind implements Matcher<Entity> {

	private static final EntityKindRegistry REGISTRY = new EntityKindRegistry();
	
	public static EntityKindRegistry getRegistry() {
		return REGISTRY;
	}
	
	private EntityType type;
	
	EntityKind(EntityType type) {
		this.type = type;
	}

	@Override
	public boolean matches(Entity e) {
		return type == e.getType();
	}
	
	public EntityType getType() {
		return type;
	}
}

@@ -255,162 +255,8 @@
  %7B%0A%0A
-%09private static final EntityKindRegistry REGISTRY = new EntityKindRegistry();%0A%09%0A%09public static EntityKindRegistry getRegistry() %7B%0A%09%09return REGISTRY;%0A%09%7D%0A%09%0A
 %09pri

Remove redundant EntityKindRegistry instance