package com.hypixel.hytale.assetstore.event; import com.hypixel.hytale.assetstore.AssetMap; import com.hypixel.hytale.assetstore.JsonAsset; import java.util.Collections; import java.util.Set; import javax.annotation.Nonnull; public class RemovedAssetsEvent, M extends AssetMap> extends AssetsEvent { private final Class tClass; private final M assetMap; @Nonnull private final Set removedAssets; private final boolean replaced; public RemovedAssetsEvent(Class tClass, M assetMap, @Nonnull Set removedAssets, boolean replaced) { this.tClass = tClass; this.assetMap = assetMap; this.removedAssets = Collections.unmodifiableSet(removedAssets); this.replaced = replaced; } public Class getAssetClass() { return this.tClass; } public M getAssetMap() { return this.assetMap; } @Nonnull public Set getRemovedAssets() { return this.removedAssets; } public boolean isReplaced() { return this.replaced; } @Nonnull @Override public String toString() { return "RemovedAssetsEvent{removedAssets=" + this.removedAssets + ", replaced=" + this.replaced + "} " + super.toString(); } }