hytale-server/com/hypixel/hytale/component/data/change/ResourceChange.java

30 lines
835 B
Java

package com.hypixel.hytale.component.data.change;
import com.hypixel.hytale.component.Resource;
import com.hypixel.hytale.component.ResourceType;
import javax.annotation.Nonnull;
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(ChangeType type, 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=" + this.type + ", resourceChange=" + this.resourceType + "}";
}
}