// Path: src/main/java/tc/oc/tracker/DamageInfo.java
// public interface DamageInfo {
//     /**
//      * Gets the living entity most responsible for this damage.
//      *
//      * @return Resolved damager or null if none exists
//      */
//     @Nullable LivingEntity getResolvedDamager();
// }
// 
// Path: src/main/java/tc/oc/tracker/DamageResolver.java
// public interface DamageResolver {
//     @Nullable DamageInfo resolve(@Nonnull LivingEntity entity, @Nonnull Lifetime lifetime, @Nonnull EntityDamageEvent damageEvent);
// }
// 
// Path: src/main/java/tc/oc/tracker/Lifetime.java
// public interface Lifetime {
//     @Nullable Instant getStart();
// 
//     void setStart(@Nonnull Instant start);
// 
//     @Nullable Instant getEnd();
// 
//     void setEnd(@Nonnull Instant end);
// 
//     @Nonnull List<Damage> getDamage();
// 
//     @Nonnull ListIterator<Damage> getDamageFirst();
// 
//     @Nonnull ListIterator<Damage> getDamageLast();
// 
//     @Nullable Damage getFirstDamage();
// 
//     @Nullable Damage getLastDamage();
// 
//     /**
//      * Gets the last damage instance where the info object is an instance of
//      * the specified class. Uses {@link Class#isInstance(Object)} to check info
//      * objects.
//      *
//      * @param damageInfoClass DamageInfo class to check for
//      * @return Last damage that matched or null if none matched
//      *
//      * @throws NullPointerException if damageInfoClass is null
//      */
//     @Nullable Damage getLastDamage(@Nonnull Class<? extends DamageInfo> damageInfoClass);
// 
//     void addDamage(@Nonnull Damage damage);
// }
// 
// Path: src/main/java/tc/oc/tracker/damage/TNTDamageInfo.java
// public class TNTDamageInfo extends ExplosiveDamageInfo {
//     public TNTDamageInfo(@Nonnull TNTPrimed explosive, @Nullable LivingEntity resolvedDamager) {
//         super(explosive, resolvedDamager);
//     }
// 
//     @Override
//     public @Nonnull TNTPrimed getExplosive() {
//         return (TNTPrimed) this.explosive;
//     }
// 
//     @Override
//     public @Nonnull String toString() {
//         return "TNTDamageInfo{explosive=" + this.explosive + ",damager=" + this.resolvedDamager + "}";
//     }
// }
// 
// Path: src/main/java/tc/oc/tracker/trackers/DispenserTracker.java
// public interface DispenserTracker extends Tracker {
//     boolean hasOwner(@Nonnull Entity entity);
// 
//     @Nullable OfflinePlayer getOwner(@Nonnull Entity entity);
// 
//     @Nullable OfflinePlayer setOwner(@Nonnull Entity entity, @Nullable Player player);
// 
//     boolean hasPlacer(@Nonnull Block block);
// 
//     @Nullable OfflinePlayer getPlacer(@Nonnull Block block);
// 
//     @Nullable OfflinePlayer setPlacer(@Nonnull Block block, @Nullable Player player);
// 
//     @Nonnull OfflinePlayer clearPlacer(@Nonnull Block block);
// }
// 
// Path: src/main/java/tc/oc/tracker/trackers/ExplosiveTracker.java
// public interface ExplosiveTracker extends Tracker {
//     boolean hasOwner(@Nonnull TNTPrimed entity);
// 
//     @Nullable Player getOwner(@Nonnull TNTPrimed entity);
// 
//     @Nullable Player setOwner(@Nonnull TNTPrimed entity, @Nullable Player player);
// 
//     boolean hasPlacer(@Nonnull Block block);
// 
//     @Nullable Player getPlacer(@Nonnull Block block);
// 
//     @Nullable Player setPlacer(@Nonnull Block block, @Nullable Player player);
// }


import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.entity.TNTPrimed;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityDamageEvent;
import tc.oc.tracker.DamageInfo;
import tc.oc.tracker.DamageResolver;
import tc.oc.tracker.Lifetime;
import tc.oc.tracker.damage.TNTDamageInfo;
import tc.oc.tracker.trackers.DispenserTracker;
import tc.oc.tracker.trackers.ExplosiveTracker;
package tc.oc.tracker.damage.resolvers;




public class TNTDamageResolver implements DamageResolver {
    private final ExplosiveTracker explosiveTracker;
// Path: src/main/java/tc/oc/tracker/DamageInfo.java
// public interface DamageInfo {
//     /**
//      * Gets the living entity most responsible for this damage.
//      *
//      * @return Resolved damager or null if none exists
//      */
//     @Nullable LivingEntity getResolvedDamager();
// }
// 
// Path: src/main/java/tc/oc/tracker/DamageResolver.java
// public interface DamageResolver {
//     @Nullable DamageInfo resolve(@Nonnull LivingEntity entity, @Nonnull Lifetime lifetime, @Nonnull EntityDamageEvent damageEvent);
// }
// 
// Path: src/main/java/tc/oc/tracker/Lifetime.java
// public interface Lifetime {
//     @Nullable Instant getStart();
// 
//     void setStart(@Nonnull Instant start);
// 
//     @Nullable Instant getEnd();
// 
//     void setEnd(@Nonnull Instant end);
// 
//     @Nonnull List<Damage> getDamage();
// 
//     @Nonnull ListIterator<Damage> getDamageFirst();
// 
//     @Nonnull ListIterator<Damage> getDamageLast();
// 
//     @Nullable Damage getFirstDamage();
// 
//     @Nullable Damage getLastDamage();
// 
//     /**
//      * Gets the last damage instance where the info object is an instance of
//      * the specified class. Uses {@link Class#isInstance(Object)} to check info
//      * objects.
//      *
//      * @param damageInfoClass DamageInfo class to check for
//      * @return Last damage that matched or null if none matched
//      *
//      * @throws NullPointerException if damageInfoClass is null
//      */
//     @Nullable Damage getLastDamage(@Nonnull Class<? extends DamageInfo> damageInfoClass);
// 
//     void addDamage(@Nonnull Damage damage);
// }
// 
// Path: src/main/java/tc/oc/tracker/damage/TNTDamageInfo.java
// public class TNTDamageInfo extends ExplosiveDamageInfo {
//     public TNTDamageInfo(@Nonnull TNTPrimed explosive, @Nullable LivingEntity resolvedDamager) {
//         super(explosive, resolvedDamager);
//     }
// 
//     @Override
//     public @Nonnull TNTPrimed getExplosive() {
//         return (TNTPrimed) this.explosive;
//     }
// 
//     @Override
//     public @Nonnull String toString() {
//         return "TNTDamageInfo{explosive=" + this.explosive + ",damager=" + this.resolvedDamager + "}";
//     }
// }
// 
// Path: src/main/java/tc/oc/tracker/trackers/DispenserTracker.java
// public interface DispenserTracker extends Tracker {
//     boolean hasOwner(@Nonnull Entity entity);
// 
//     @Nullable OfflinePlayer getOwner(@Nonnull Entity entity);
// 
//     @Nullable OfflinePlayer setOwner(@Nonnull Entity entity, @Nullable Player player);
// 
//     boolean hasPlacer(@Nonnull Block block);
// 
//     @Nullable OfflinePlayer getPlacer(@Nonnull Block block);
// 
//     @Nullable OfflinePlayer setPlacer(@Nonnull Block block, @Nullable Player player);
// 
//     @Nonnull OfflinePlayer clearPlacer(@Nonnull Block block);
// }
// 
// Path: src/main/java/tc/oc/tracker/trackers/ExplosiveTracker.java
// public interface ExplosiveTracker extends Tracker {
//     boolean hasOwner(@Nonnull TNTPrimed entity);
// 
//     @Nullable Player getOwner(@Nonnull TNTPrimed entity);
// 
//     @Nullable Player setOwner(@Nonnull TNTPrimed entity, @Nullable Player player);
// 
//     boolean hasPlacer(@Nonnull Block block);
// 
//     @Nullable Player getPlacer(@Nonnull Block block);
// 
//     @Nullable Player setPlacer(@Nonnull Block block, @Nullable Player player);
// }


// Path: src/main/java/tc/oc/tracker/damage/resolvers/TNTDamageResolver.java
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.entity.TNTPrimed;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityDamageEvent;
import tc.oc.tracker.DamageInfo;
import tc.oc.tracker.DamageResolver;
import tc.oc.tracker.Lifetime;
import tc.oc.tracker.damage.TNTDamageInfo;
import tc.oc.tracker.trackers.DispenserTracker;
import tc.oc.tracker.trackers.ExplosiveTracker;

package tc.oc.tracker.damage.resolvers;




public class TNTDamageResolver implements DamageResolver {
    private final ExplosiveTracker explosiveTracker;
    private final DispenserTracker dispenserTracker;