Added back the addTextReplacement thing :v

This commit is contained in:
Ellpeck 2016-11-12 22:55:07 +01:00
parent b667b1a257
commit 83eb47787f
3 changed files with 7 additions and 2 deletions

View file

@ -31,7 +31,7 @@ public final class ActuallyAdditionsAPI{
public static final String MOD_ID = "actuallyadditions";
public static final String API_ID = MOD_ID+"api";
public static final String API_VERSION = "27";
public static final String API_VERSION = "28";
public static final List<CrusherRecipe> CRUSHER_RECIPES = new ArrayList<CrusherRecipe>();
public static final List<BallOfFurReturn> BALL_OF_FUR_RETURN_ITEMS = new ArrayList<BallOfFurReturn>();

View file

@ -58,4 +58,8 @@ public interface IBookletPage{
boolean shouldBeOnLeftSide();
String getIdentifier();
IBookletPage addTextReplacement(String key, String value);
IBookletPage addTextReplacement(String key, float value);
}

View file

@ -156,12 +156,13 @@ public class BookletPage implements IBookletPage{
return this;
}
@Override
public BookletPage addTextReplacement(String key, String value){
this.textReplacements.put(key, value);
return this;
}
@Override
public BookletPage addTextReplacement(String key, float value){
return this.addTextReplacement(key, Float.toString(value));
}