package com.minelittlepony.api.pony; import java.util.List; public class TriggerPixelSet & TriggerPixelType> extends TriggerPixelValue { private final T def; public TriggerPixelSet(int color, T def, boolean[] value) { super(color, value); this.def = def; } @SuppressWarnings("unchecked") @Override public List> getOptions() { return def.getOptions(); } @Override public boolean matches(Object o) { return o.getClass() == def.getClass() && getValue()[((Enum)o).ordinal()]; } }