package com.alttd.boosters.managers; import com.alttd.boosterapi.Booster; import com.alttd.boosterapi.BoosterType; import java.util.List; public class BoosterManager { private static List activeBoosters; public boolean isBoosted(BoosterType type) { for (Booster b : activeBoosters) { if (b.getType() == type && b.isActive()) { return true; } } return false; } public Booster getBoosted(BoosterType type) { for (Booster b : activeBoosters) { if (b.getType() == type && b.isActive()) { return b; } } return null; } }