// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.component.data.change;

import javax.annotation.Nonnull;
import com.hypixel.hytale.component.ResourceType;
import com.hypixel.hytale.component.Resource;

public class ResourceChange<ECS_TYPE, T extends Resource<ECS_TYPE>> implements DataChange
{
    private final ChangeType type;
    private final ResourceType<ECS_TYPE, T> resourceType;
    
    public ResourceChange(final ChangeType type, final ResourceType<ECS_TYPE, T> resourceType) {
        this.type = type;
        this.resourceType = resourceType;
    }
    
    public ChangeType getType() {
        return this.type;
    }
    
    public ResourceType<ECS_TYPE, T> getResourceType() {
        return this.resourceType;
    }
    
    @Nonnull
    @Override
    public String toString() {
        return "ResourceChange{type=" + String.valueOf(this.type) + ", resourceChange=" + String.valueOf(this.resourceType);
    }
}
