mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 20:42:35 +00:00
26 lines
550 B
Java
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());
|
|
}
|
|
}
|