com.cryptomorin.xseries.profiles.builder.ProfileFallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of XSeries Show documentation
Show all versions of XSeries Show documentation
A set of utilities for Minecraft plugins
package com.cryptomorin.xseries.profiles.builder;
import com.cryptomorin.xseries.profiles.exceptions.ProfileChangeException;
import com.cryptomorin.xseries.profiles.objects.ProfileContainer;
/**
* An object that has all the information about failed attempts.
* @param the object that has its profile set. See {@link ProfileContainer} for a list.
*/
public final class ProfileFallback {
private final ProfileInstruction instruction;
private T object;
private final ProfileChangeException error;
public ProfileFallback(ProfileInstruction instruction, T object, ProfileChangeException error) {
this.instruction = instruction;
this.object = object;
this.error = error;
}
public T getObject() {
return object;
}
public ProfileInstruction getInstruction() {
return instruction;
}
public void setObject(T object) {
this.object = object;
}
public ProfileChangeException getError() {
return error;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy