Files
ForestryMC/src/main/java/forestry/mail/ResponseNotMailable.java
T

26 lines
550 B
Java

package forestry.mail;
import javax.annotation.Nonnull;
import forestry.api.mail.IPostalState;
import forestry.core.utils.Translator;
public class ResponseNotMailable implements IPostalState {
@Nonnull
private final IPostalState state;
public ResponseNotMailable(@Nonnull IPostalState state) {
this.state = state;
}
@Override
public boolean isOk() {
return false;
}
@Override
public String getDescription() {
return Translator.translateToLocalFormatted("for.chat.mail.response.not.mailable.format", state.getDescription());
}
}