mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 12:59:44 +00:00
1 parent
1d1959b535
commit
92460d1d4a
20 files changed
+274
-155
No files matched your search
@@ -0,0 +1,35 @@
|
||||
/*******************************************************************************
|
||||
* 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.StatCollector;
|
||||
|
||||
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 StatCollector.translateToLocal(unlocalizedDescription);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user