Skip to content

Commit

Permalink
implement methods for ResultNoSpaceProject
Browse files Browse the repository at this point in the history
  • Loading branch information
Caedis committed Sep 1, 2024
1 parent ea282aa commit 4573ef4
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
package com.gtnewhorizons.gtnhintergalactic.recipe;

import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.PacketBuffer;
import net.minecraft.util.StatCollector;

import org.jetbrains.annotations.NotNull;

import com.gtnewhorizons.modularui.common.internal.network.NetworkUtils;

import gregtech.api.recipe.check.CheckRecipeResult;
Expand Down Expand Up @@ -60,6 +63,19 @@ public String getDisplayString() {
StatCollector.translateToLocal(neededLocation));
}

@Override
public @NotNull NBTTagCompound writeToNBT(@NotNull NBTTagCompound tag) {
tag.setString("neededProject", neededProject);
tag.setString("neededLocation", neededLocation);
return tag;
}

@Override
public void readFromNBT(@NotNull NBTTagCompound tag) {
neededProject = tag.getString("needProject");
neededLocation = tag.getString("neededLocation");
}

/**
* @return New instance of this error without configured parameters
*/
Expand Down

0 comments on commit 4573ef4

Please sign in to comment.