mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-16 18:44:45 +00:00
36 lines
1.1 KiB
Java
36 lines
1.1 KiB
Java
/*******************************************************************************
|
|
* Copyright 2011-2014 SirSengir
|
|
*
|
|
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
|
|
******************************************************************************/
|
|
package forestry.api.mail;
|
|
|
|
import javax.annotation.Nonnull;
|
|
|
|
import net.minecraft.util.text.translation.I18n;
|
|
|
|
public enum EnumTradeStationState implements IPostalState {
|
|
OK("for.chat.mail.ok"),
|
|
INSUFFICIENT_OFFER("for.chat.mail.insufficient.offer"),
|
|
INSUFFICIENT_TRADE_GOOD("for.chat.mail.insufficient.trade.good"),
|
|
INSUFFICIENT_BUFFER("for.chat.mail.insufficient.buffer"),
|
|
INSUFFICIENT_PAPER("for.chat.mail.insufficient.paper"),
|
|
INSUFFICIENT_STAMPS("for.chat.mail.insufficient.stamps");
|
|
|
|
private final String unlocalizedDescription;
|
|
|
|
EnumTradeStationState(@Nonnull String unlocalizedDescription) {
|
|
this.unlocalizedDescription = unlocalizedDescription;
|
|
}
|
|
|
|
@Override
|
|
public boolean isOk() {
|
|
return this == OK;
|
|
}
|
|
|
|
@Override
|
|
public String getDescription() {
|
|
return I18n.translateToLocal(unlocalizedDescription);
|
|
}
|
|
}
|