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

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

import javax.annotation.Nonnull;
import com.hypixel.hytale.component.ComponentType;
import com.hypixel.hytale.component.Component;

public class ComponentChange<ECS_TYPE, T extends Component<ECS_TYPE>> implements DataChange
{
    private final ChangeType type;
    private final ComponentType<ECS_TYPE, T> componentType;
    
    public ComponentChange(final ChangeType type, final ComponentType<ECS_TYPE, T> componentType) {
        this.type = type;
        this.componentType = componentType;
    }
    
    public ChangeType getType() {
        return this.type;
    }
    
    public ComponentType<ECS_TYPE, T> getComponentType() {
        return this.componentType;
    }
    
    @Nonnull
    @Override
    public String toString() {
        return "ComponentChange{type=" + String.valueOf(this.type) + ", componentType=" + String.valueOf(this.componentType);
    }
}
