mirror of
https://github.com/GTNewHorizons/JustEnoughCalculation.git
synced 2026-11-22 04:52:29 +00:00
feat: clean up
This commit is contained in:
1 parent
0f1f888299
commit
fa3ba7542c
55 files changed
+611
-490
No files matched your search
@@ -9,6 +9,9 @@ import me.towdium.jecalculation.data.structure.Recents;
|
||||
import me.towdium.jecalculation.data.structure.Recipe;
|
||||
import me.towdium.jecalculation.data.structure.Recipes;
|
||||
import me.towdium.jecalculation.utils.wrappers.Triple;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.CompressedStreamTools;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
@@ -27,7 +30,7 @@ import java.util.stream.Collectors;
|
||||
* Date: 17-10-15.
|
||||
*/
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class Controller { // TODO record calculate amount
|
||||
public class Controller {
|
||||
public static final String KEY_RECIPES = "recipes";
|
||||
public static final String KEY_RECENTS = "recents";
|
||||
static Recipes recipesClient;
|
||||
@@ -37,6 +40,10 @@ public class Controller { // TODO record calculate amount
|
||||
return recipesClient;
|
||||
}
|
||||
|
||||
static Optional<ItemStack> getStack() {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
public static List<String> getGroups() {
|
||||
Recipes user = getRecord();
|
||||
if (user.size() != 0)
|
||||
@@ -72,11 +79,11 @@ public class Controller { // TODO record calculate amount
|
||||
return getRecord().getRecipes(group);
|
||||
}
|
||||
|
||||
public static Optional<Recipe> getRecipe(ILabel label, Recipe.enumIoType type) {
|
||||
return getRecord().getRecipe(label, type);
|
||||
public static Optional<Recipe> getRecipe(ILabel label) {
|
||||
return getRecord().getRecipe(label);
|
||||
}
|
||||
|
||||
public static List<ILabel> getRecent() { // TODO reduce usage of it since it reads nbt again
|
||||
public static List<ILabel> getRecent() {
|
||||
return recentsClient.getRecords();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user