package net.mcreator.puzzle_code.procedures;

import net.minecraft.world.level.LevelAccessor;
import net.minecraft.client.gui.components.EditBox;

import java.util.HashMap;

public class ApplyGetNBTProcedure {
	public static void execute(LevelAccessor world, double x, double y, double z, HashMap guistate) {
		if (guistate == null)
			return;
		SetNBTTextSystemProcedure.execute(world, x, y, z, "getNBT", guistate.containsKey("text:getNBTField") ? ((EditBox) guistate.get("text:getNBTField")).getValue() : "");
	}
}
